summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/ELF.h
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2009-08-13 21:25:27 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2009-08-13 21:25:27 +0000
commitd2d45a557541e5a7e3afcf1b3d41436ddc78be82 (patch)
tree12454cf3aef0bf2f523d3c0a6f3f2f9ffedf24bc /llvm/lib/CodeGen/ELF.h
parente795f7bed57215720f38b43c27153d2a28bf9dfb (diff)
downloadbcm5719-llvm-d2d45a557541e5a7e3afcf1b3d41436ddc78be82.tar.gz
bcm5719-llvm-d2d45a557541e5a7e3afcf1b3d41436ddc78be82.zip
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 llvm-svn: 78940
Diffstat (limited to 'llvm/lib/CodeGen/ELF.h')
-rw-r--r--llvm/lib/CodeGen/ELF.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/ELF.h b/llvm/lib/CodeGen/ELF.h
index c9ec9b1912b..b466e89cb26 100644
--- a/llvm/lib/CodeGen/ELF.h
+++ b/llvm/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;
};
OpenPOWER on IntegriCloud