diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2009-08-13 21:25:27 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2009-08-13 21:25:27 +0000 |
commit | d163e8b14c8aa5bbbb129e3f0dffdbe7213a3c72 (patch) | |
tree | b73ee7209f89ac7d95b0872eecc375934c7b7ff8 /lib/CodeGen/ELF.h | |
parent | b8e1055f41526a852dec2c9565ba1afd2706eee8 (diff) |
Remove hack used to strip unwanted chars from section name
Use MCSectionELF methods as much as possible, removing some
ELFWriter methods which are now unused
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78940 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ELF.h')
-rw-r--r-- | lib/CodeGen/ELF.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/CodeGen/ELF.h b/lib/CodeGen/ELF.h index c9ec9b1912..b466e89cb2 100644 --- a/lib/CodeGen/ELF.h +++ b/lib/CodeGen/ELF.h @@ -74,19 +74,19 @@ namespace llvm { }; unsigned SourceType; - bool isGlobalValue() { return SourceType == isGV; } - bool isExternalSym() { return SourceType == isExtSym; } + bool isGlobalValue() const { return SourceType == isGV; } + bool isExternalSym() const { return SourceType == isExtSym; } // getGlobalValue - If this is a global value which originated the // elf symbol, return a reference to it. - const GlobalValue *getGlobalValue() { + const GlobalValue *getGlobalValue() const { assert(SourceType == isGV && "This is not a global value"); return Source.GV; }; // getExternalSym - If this is an external symbol which originated the // elf symbol, return a reference to it. - const char *getExternalSymbol() { + const char *getExternalSymbol() const { assert(SourceType == isExtSym && "This is not an external symbol"); return Source.Ext; }; |