summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorMartin Pelikan <martin.pelikan@gmail.com>2017-09-27 05:10:31 +0000
committerMartin Pelikan <martin.pelikan@gmail.com>2017-09-27 05:10:31 +0000
commit8b0cdbfb1d6df73cb415db862aaff5b84c98cae9 (patch)
treebd0a05f4de10ccb73f06793d66492e56367d241c /llvm/tools
parent10c873f1d979c07b2e9d48e208f32dd075e64cab (diff)
downloadbcm5719-llvm-8b0cdbfb1d6df73cb415db862aaff5b84c98cae9.tar.gz
bcm5719-llvm-8b0cdbfb1d6df73cb415db862aaff5b84c98cae9.zip
[XRay] fix the -Werror build by handling all enum cases in switches
Followup to D32840. llvm-svn: 314270
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/llvm-xray/xray-account.cc3
-rw-r--r--llvm/tools/llvm-xray/xray-stacks.cc3
2 files changed, 5 insertions, 1 deletions
diff --git a/llvm/tools/llvm-xray/xray-account.cc b/llvm/tools/llvm-xray/xray-account.cc
index 0ba6cad5cca..7b684aad693 100644
--- a/llvm/tools/llvm-xray/xray-account.cc
+++ b/llvm/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/llvm/tools/llvm-xray/xray-stacks.cc b/llvm/tools/llvm-xray/xray-stacks.cc
index 40dcc31cd1f..d727496f4e7 100644
--- a/llvm/tools/llvm-xray/xray-stacks.cc
+++ b/llvm/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
OpenPOWER on IntegriCloud