OSDN Git Service

[MachineFunction] Constify getter. NFC.
authorQuentin Colombet <qcolombet@apple.com>
Tue, 19 Jan 2016 22:31:12 +0000 (22:31 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Tue, 19 Jan 2016 22:31:12 +0000 (22:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@258207 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 82c30d3..df7c951 100644 (file)
@@ -295,7 +295,7 @@ public:
   }
 
   /// Should we be emitting segmented stack stuff for the function
-  bool shouldSplitStack();
+  bool shouldSplitStack() const;
 
   /// getNumBlockIDs - Return the number of MBB ID's allocated.
   ///
index ca4bb1c..f6604f3 100644 (file)
@@ -163,7 +163,7 @@ getOrCreateJumpTableInfo(unsigned EntryKind) {
 }
 
 /// Should we be emitting segmented stack stuff for the function
-bool MachineFunction::shouldSplitStack() {
+bool MachineFunction::shouldSplitStack() const {
   return getFunction()->hasFnAttribute("split-stack");
 }