1
0
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:
Francis Visoiu Mistrih 2017-07-19 23:47:33 +00:00
parent 497c89212c
commit d567eb3405
2 changed files with 2 additions and 2 deletions

View File

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

View File

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