mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-21 19:20:50 +00:00
[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
This commit is contained in:
parent
62b26114df
commit
bb96774b04
@ -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…
x
Reference in New Issue
Block a user