From: Anton Korobeynikov Date: Wed, 9 Jul 2008 13:17:36 +0000 (+0000) Subject: Constify X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=8cc948d2288da5c89f1de5208f49bb95c1813c21;p=oota-llvm.git Constify git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53291 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h index 65c0df49812..7af2c03aa63 100644 --- a/include/llvm/Target/TargetAsmInfo.h +++ b/include/llvm/Target/TargetAsmInfo.h @@ -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. // diff --git a/lib/Target/TargetAsmInfo.cpp b/lib/Target/TargetAsmInfo.cpp index cda939c87cf..404e152da7b 100644 --- a/lib/Target/TargetAsmInfo.cpp +++ b/lib/Target/TargetAsmInfo.cpp @@ -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.