summaryrefslogtreecommitdiff
path: root/tools/llvm-readobj
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-03-06 19:58:56 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-03-06 19:58:56 +0000
commit7ed86b085eedf04fcc13e691ffa97bdbabd285f7 (patch)
tree5118148ca78eefe477db2c3385b77f372ff75b53 /tools/llvm-readobj
parent27cfb7a41d02e2f36f9dbcd467b557116c86c3f0 (diff)
Use the existing N_STAB from the MachO namespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203152 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-readobj')
-rw-r--r--tools/llvm-readobj/MachODumper.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/llvm-readobj/MachODumper.cpp b/tools/llvm-readobj/MachODumper.cpp
index 1631777423e..6077334de2c 100644
--- a/tools/llvm-readobj/MachODumper.cpp
+++ b/tools/llvm-readobj/MachODumper.cpp
@@ -134,10 +134,6 @@ static const EnumEntry<unsigned> MachOSymbolTypes[] = {
};
namespace {
- enum {
- N_STAB = 0xE0
- };
-
struct MachOSection {
ArrayRef<char> Name;
ArrayRef<char> SegmentName;
@@ -396,7 +392,7 @@ void MachODumper::printSymbol(symbol_iterator SymI) {
DictScope D(W, "Symbol");
W.printNumber("Name", SymbolName, Symbol.StringIndex);
- if (Symbol.Type & N_STAB) {
+ if (Symbol.Type & MachO::N_STAB) {
W.printHex ("Type", "SymDebugTable", Symbol.Type);
} else {
W.printEnum("Type", Symbol.Type, makeArrayRef(MachOSymbolTypes));