]> granicus.if.org Git - llvm/commitdiff
[AsmPrinter] Constify needsCFIMoves. NFC
authorFrancis Visoiu Mistrih <fvisoiumistrih@apple.com>
Wed, 19 Jul 2017 23:47:33 +0000 (23:47 +0000)
committerFrancis Visoiu Mistrih <fvisoiumistrih@apple.com>
Wed, 19 Jul 2017 23:47:33 +0000 (23:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308557 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/AsmPrinter.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp

index 60bbc9aaa5bd460faee4baafbedd06b10dd285d8..1e78ac9b33a29b025eabb8904df85907af875df4 100644 (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.
index ff427c9a0d756a979375a7352c708f6c1d69af53..1ea82f84a54c16b5912f64c72cf18adb06cefe12 100644 (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;