Add 'const' to getter function.
authorJim Grosbach <grosbach@apple.com>
Fri, 3 Sep 2010 18:17:16 +0000 (18:17 +0000)
committerJim Grosbach <grosbach@apple.com>
Fri, 3 Sep 2010 18:17:16 +0000 (18:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112984 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineFrameInfo.h

index b6297fab3a98350464c14b72c1b2384988842e57..dca65ef6d4073972bdbfd9113f469b53426c2b02 100644 (file)
@@ -305,7 +305,7 @@ public:
 
   /// getLocalFrameMaxAlign - Return the required alignment of the local
   /// object blob.
-  unsigned getLocalFrameMaxAlign() { return LocalFrameMaxAlign; }
+  unsigned getLocalFrameMaxAlign() const { return LocalFrameMaxAlign; }
 
   /// getUseLocalStackAllocationBlock - Get whether the local allocation blob
   /// should be allocated together or let PEI allocate the locals in it