summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/MachOObjectFile.cpp
diff options
context:
space:
mode:
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