llvm.org GIT mirror llvm / bb96774
[XRay] fix the -Werror build by handling all enum cases in switches Followup to D32840. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314270 91177308-0d34-0410-b5e6-96231b3b80d8 Martin Pelikan 2 years ago
2 changed file(s) with 5 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
417417 case RecordTypes::ENTER:
418418 Stream << "enter";
419419 break;
420 case RecordTypes::ENTER_ARG:
421 Stream << "enter-arg";
422 break;
420423 case RecordTypes::EXIT:
421424 Stream << "exit";
422425 break;
320320 AccountRecordState *state) {
321321 auto &TS = ThreadStackMap[R.TId];
322322 switch (R.Type) {
323 case RecordTypes::ENTER: {
323 case RecordTypes::ENTER:
324 case RecordTypes::ENTER_ARG: {
324325 state->wasLastRecordExit = false;
325326 // When we encounter a new function entry, we want to record the TSC for
326327 // that entry, and the function id. Before doing so we check the top of