summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/MachOObjectFile.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-11-02 21:16:09 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-11-02 21:16:09 +0000
commit586af97a303873d62505a0734f1306d37523c532 (patch)
tree1b6d1b984a3e748e3957e452c3b38057e385c62e /llvm/lib/Object/MachOObjectFile.cpp
parent06adfac8bebb9cd88e3093f2940fd52006b73ff8 (diff)
downloadbcm5719-llvm-586af97a303873d62505a0734f1306d37523c532.tar.gz
bcm5719-llvm-586af97a303873d62505a0734f1306d37523c532.zip
move getSymbolNMTypeChar to the one program that needs it: nm.
llvm-svn: 193933
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
-rw-r--r--llvm/lib/Object/MachOObjectFile.cpp37
1 files changed, 0 insertions, 37 deletions
diff --git a/llvm/lib/Object/MachOObjectFile.cpp b/llvm/lib/Object/MachOObjectFile.cpp
index f48bb8a7fe0..d2cb8bde6d2 100644
--- a/llvm/lib/Object/MachOObjectFile.cpp
+++ b/llvm/lib/Object/MachOObjectFile.cpp
@@ -591,43 +591,6 @@ error_code MachOObjectFile::getSymbolType(DataRefImpl Symb,
return object_error::success;
}
-error_code MachOObjectFile::getSymbolNMTypeChar(DataRefImpl Symb,
- char &Res) const {
- nlist_base Entry = getSymbolTableEntryBase(this, Symb);
- uint8_t NType = Entry.n_type;
-
- char Char;
- switch (NType & MachO::N_TYPE) {
- case MachO::N_UNDF:
- Char = 'u';
- break;
- case MachO::N_ABS:
- Char = 's';
- break;
- case MachO::N_SECT: {
- section_iterator Sec = end_sections();
- getSymbolSection(Symb, Sec);
- DataRefImpl Ref = Sec->getRawDataRefImpl();
- StringRef SectionName;
- getSectionName(Ref, SectionName);
- StringRef SegmentName = getSectionFinalSegmentName(Ref);
- if (SegmentName == "__TEXT" && SectionName == "__text")
- Char = 't';
- else
- Char = 's';
- }
- break;
- default:
- Char = '?';
- break;
- }
-
- if (NType & (MachO::N_EXT | MachO::N_PEXT))
- Char = toupper(static_cast<unsigned char>(Char));
- Res = Char;
- return object_error::success;
-}
-
error_code MachOObjectFile::getSymbolFlags(DataRefImpl DRI,
uint32_t &Result) const {
nlist_base Entry = getSymbolTableEntryBase(this, DRI);
OpenPOWER on IntegriCloud