summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/ELFObjectFile.cpp
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2011-10-17 23:55:06 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2011-10-17 23:55:06 +0000
commit1d19f97ea5a4ab0707f9c5f1df968123f4abc4b8 (patch)
tree4dce933580b309cf9a54145d0bbc8307bcd8a550 /llvm/lib/Object/ELFObjectFile.cpp
parent321731539e9fd4b20a69c7e14a42ccc694476b14 (diff)
downloadbcm5719-llvm-1d19f97ea5a4ab0707f9c5f1df968123f4abc4b8.tar.gz
bcm5719-llvm-1d19f97ea5a4ab0707f9c5f1df968123f4abc4b8.zip
Object: Add some types to SymbolRef::Type.
Some of these can be true at the same time and there are a lot to add, so this should be turned into a bitfield. Some of the other accessors should probably be folded into this. llvm-svn: 142318
Diffstat (limited to 'llvm/lib/Object/ELFObjectFile.cpp')
-rw-r--r--llvm/lib/Object/ELFObjectFile.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Object/ELFObjectFile.cpp b/llvm/lib/Object/ELFObjectFile.cpp
index a5e3910d16c..97ba9167a53 100644
--- a/llvm/lib/Object/ELFObjectFile.cpp
+++ b/llvm/lib/Object/ELFObjectFile.cpp
@@ -621,6 +621,12 @@ error_code ELFObjectFile<target_endianness, is64Bits>
}
switch (symb->getType()) {
+ case ELF::STT_SECTION:
+ Result = SymbolRef::ST_Debug;
+ break;
+ case ELF::STT_FILE:
+ Result = SymbolRef::ST_File;
+ break;
case ELF::STT_FUNC:
Result = SymbolRef::ST_Function;
break;
OpenPOWER on IntegriCloud