Merging r258207:
authorQuentin Colombet <qcolombet@apple.com>
Wed, 20 Jan 2016 01:09:12 +0000 (01:09 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Wed, 20 Jan 2016 01:09:12 +0000 (01:09 +0000)
------------------------------------------------------------------------
r258207 | qcolombet | 2016-01-19 14:31:12 -0800 (Tue, 19 Jan 2016) | 1 line

[MachineFunction] Constify getter. NFC.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_38@258268 91177308-0d34-0410-b5e6-96231b3b80d8

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

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