diff options
author | Martin Pelikan <martin.pelikan@gmail.com> | 2017-09-27 05:10:31 +0000 |
---|---|---|
committer | Martin Pelikan <martin.pelikan@gmail.com> | 2017-09-27 05:10:31 +0000 |
commit | bb96774b04a3d2d8a3011a21cf1a937a84ba8e01 (patch) | |
tree | c9bc897b184c2ff3d267eeaf963be6a122d6f418 /tools/llvm-xray | |
parent | 62b26114df7d9d2db84e2a46cdf88377e15ad104 (diff) |
[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
Diffstat (limited to 'tools/llvm-xray')
-rw-r--r-- | tools/llvm-xray/xray-account.cc | 3 | ||||
-rw-r--r-- | tools/llvm-xray/xray-stacks.cc | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/tools/llvm-xray/xray-account.cc b/tools/llvm-xray/xray-account.cc index 0ba6cad5cca..7b684aad693 100644 --- a/tools/llvm-xray/xray-account.cc +++ b/tools/llvm-xray/xray-account.cc @@ -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; diff --git a/tools/llvm-xray/xray-stacks.cc b/tools/llvm-xray/xray-stacks.cc index 40dcc31cd1f..d727496f4e7 100644 --- a/tools/llvm-xray/xray-stacks.cc +++ b/tools/llvm-xray/xray-stacks.cc @@ -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 |