mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-25 04:39:44 +00:00
ARMAsmPrinter.cpp: Try to fix up r148686. EnableARMEHABI was also here.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148694 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3755615411
commit
db4b85f532
@ -1192,7 +1192,7 @@ void ARMAsmPrinter::EmitUnwindingInstruction(const MachineInstr *MI) {
|
||||
}
|
||||
}
|
||||
|
||||
extern cl::opt<bool> EnableARMEHABI;
|
||||
extern cl::opt<ExceptionHandling::ARMEHABIMode> EnableARMEHABI;
|
||||
|
||||
// Simple pseudo-instructions have their lowering (with expansion to real
|
||||
// instructions) auto-generated.
|
||||
@ -1203,7 +1203,8 @@ void ARMAsmPrinter::EmitInstruction(const MachineInstr *MI) {
|
||||
OutStreamer.EmitCodeRegion();
|
||||
|
||||
// Emit unwinding stuff for frame-related instructions
|
||||
if (EnableARMEHABI && MI->getFlag(MachineInstr::FrameSetup))
|
||||
if (EnableARMEHABI != ExceptionHandling::ARMEHABIDisabled &&
|
||||
MI->getFlag(MachineInstr::FrameSetup))
|
||||
EmitUnwindingInstruction(MI);
|
||||
|
||||
// Do any auto-generated pseudo lowerings.
|
||||
|
Loading…
Reference in New Issue
Block a user