mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:43:36 +01:00
[AsmPrinter] Constify needsCFIMoves. NFC
llvm-svn: 308557
This commit is contained in:
parent
497c89212c
commit
d567eb3405
@ -294,7 +294,7 @@ public:
|
||||
void emitFrameAlloc(const MachineInstr &MI);
|
||||
|
||||
enum CFIMoveType { CFI_M_None, CFI_M_EH, CFI_M_Debug };
|
||||
CFIMoveType needsCFIMoves();
|
||||
CFIMoveType needsCFIMoves() const;
|
||||
|
||||
/// Returns false if needsCFIMoves() == CFI_M_EH for any function
|
||||
/// in the module.
|
||||
|
@ -901,7 +901,7 @@ static bool emitDebugValueComment(const MachineInstr *MI, AsmPrinter &AP) {
|
||||
return true;
|
||||
}
|
||||
|
||||
AsmPrinter::CFIMoveType AsmPrinter::needsCFIMoves() {
|
||||
AsmPrinter::CFIMoveType AsmPrinter::needsCFIMoves() const {
|
||||
if (MAI->getExceptionHandlingType() == ExceptionHandling::DwarfCFI &&
|
||||
MF->getFunction()->needsUnwindTableEntry())
|
||||
return CFI_M_EH;
|
||||
|
Loading…
Reference in New Issue
Block a user