mirror of
https://github.com/intel/llvm.git
synced 2026-01-13 19:08:21 +08:00
[BOLT] Fix warnings (#114116)
This patch fixes: bolt/lib/Core/BinaryFunction.cpp:2537:13: error: enumeration value 'OpNegateRAStateWithPC' not handled in switch [-Werror,-Wswitch] bolt/lib/Core/BinaryFunction.cpp:2661:13: error: enumeration value 'OpNegateRAStateWithPC' not handled in switch [-Werror,-Wswitch] bolt/lib/Core/BinaryFunction.cpp:2805:13: error: enumeration value 'OpNegateRAStateWithPC' not handled in switch [-Werror,-Wswitch]
This commit is contained in:
@@ -2577,6 +2577,7 @@ private:
|
||||
case MCCFIInstruction::OpAdjustCfaOffset:
|
||||
case MCCFIInstruction::OpWindowSave:
|
||||
case MCCFIInstruction::OpNegateRAState:
|
||||
case MCCFIInstruction::OpNegateRAStateWithPC:
|
||||
case MCCFIInstruction::OpLLVMDefAspaceCfa:
|
||||
case MCCFIInstruction::OpLabel:
|
||||
llvm_unreachable("unsupported CFI opcode");
|
||||
@@ -2715,6 +2716,7 @@ struct CFISnapshotDiff : public CFISnapshot {
|
||||
case MCCFIInstruction::OpAdjustCfaOffset:
|
||||
case MCCFIInstruction::OpWindowSave:
|
||||
case MCCFIInstruction::OpNegateRAState:
|
||||
case MCCFIInstruction::OpNegateRAStateWithPC:
|
||||
case MCCFIInstruction::OpLLVMDefAspaceCfa:
|
||||
case MCCFIInstruction::OpLabel:
|
||||
llvm_unreachable("unsupported CFI opcode");
|
||||
@@ -2864,6 +2866,7 @@ BinaryFunction::unwindCFIState(int32_t FromState, int32_t ToState,
|
||||
case MCCFIInstruction::OpAdjustCfaOffset:
|
||||
case MCCFIInstruction::OpWindowSave:
|
||||
case MCCFIInstruction::OpNegateRAState:
|
||||
case MCCFIInstruction::OpNegateRAStateWithPC:
|
||||
case MCCFIInstruction::OpLLVMDefAspaceCfa:
|
||||
case MCCFIInstruction::OpLabel:
|
||||
llvm_unreachable("unsupported CFI opcode");
|
||||
|
||||
Reference in New Issue
Block a user