Constify
authorAnton Korobeynikov <asl@math.spbu.ru>
Wed, 9 Jul 2008 13:17:36 +0000 (13:17 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Wed, 9 Jul 2008 13:17:36 +0000 (13:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53291 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetAsmInfo.h
lib/Target/TargetAsmInfo.cpp

index 65c0df4981253bc020147900407b10742e5abe6d..7af2c03aa63035840099752979b80e0913e44c35 100644 (file)
@@ -469,7 +469,7 @@ namespace llvm {
     /// section flags either for given global or for section.
     unsigned
     SectionFlagsForGlobal(const GlobalValue *GV = NULL,
-                          const char* name = NULL);
+                          const char* name = NULL) const;
 
     // Accessors.
     //
index cda939c87cf3f3e2469ce84e4dd5a97795747987..404e152da7b365820da6413d9c9ef156882c3f51 100644 (file)
@@ -194,7 +194,7 @@ TargetAsmInfo::SectionKindForGlobal(const GlobalValue *GV) const {
 
 unsigned
 TargetAsmInfo::SectionFlagsForGlobal(const GlobalValue *GV,
-                                     const char* name) {
+                                     const char* name) const {
   unsigned flags = SectionFlags::None;
 
   // Decode flags from global itself.