forked from OSchip/llvm-project
[XRay] fix the -Werror build by handling all enum cases in switches
Followup to D32840. llvm-svn: 314270
This commit is contained in:
parent
10c873f1d9
commit
8b0cdbfb1d
|
@ -418,6 +418,9 @@ template <> struct format_provider<llvm::xray::RecordTypes> {
|
|||
case RecordTypes::ENTER:
|
||||
Stream << "enter";
|
||||
break;
|
||||
case RecordTypes::ENTER_ARG:
|
||||
Stream << "enter-arg";
|
||||
break;
|
||||
case RecordTypes::EXIT:
|
||||
Stream << "exit";
|
||||
break;
|
||||
|
|
|
@ -321,7 +321,8 @@ public:
|
|||
AccountRecordState *state) {
|
||||
auto &TS = ThreadStackMap[R.TId];
|
||||
switch (R.Type) {
|
||||
case RecordTypes::ENTER: {
|
||||
case RecordTypes::ENTER:
|
||||
case RecordTypes::ENTER_ARG: {
|
||||
state->wasLastRecordExit = false;
|
||||
// When we encounter a new function entry, we want to record the TSC for
|
||||
// that entry, and the function id. Before doing so we check the top of
|
||||
|
|
Loading…
Reference in New Issue