[XRay] fix the -Werror build by handling all enum cases in switches

Followup to D32840.

llvm-svn: 314270
This commit is contained in:
Martin Pelikan 2017-09-27 05:10:31 +00:00
parent 10c873f1d9
commit 8b0cdbfb1d
2 changed files with 5 additions and 1 deletions

View File

@ -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;

View File

@ -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