[llvm] r203152 - Use the existing N_STAB from the MachO namespace.

Rafael Espindola rafael.espindola at gmail.com
Thu Mar 6 11:58:56 PST 2014


Author: rafael
Date: Thu Mar  6 13:58:56 2014
New Revision: 203152

URL: http://llvm.org/viewvc/llvm-project?rev=203152&view=rev
Log:
Use the existing N_STAB from the MachO namespace.

Modified:
    llvm/trunk/tools/llvm-readobj/MachODumper.cpp

Modified: llvm/trunk/tools/llvm-readobj/MachODumper.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-readobj/MachODumper.cpp?rev=203152&r1=203151&r2=203152&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-readobj/MachODumper.cpp (original)
+++ llvm/trunk/tools/llvm-readobj/MachODumper.cpp Thu Mar  6 13:58:56 2014
@@ -134,10 +134,6 @@ static const EnumEntry<unsigned> MachOSy
 };
 
 namespace {
-  enum {
-    N_STAB = 0xE0
-  };
-
   struct MachOSection {
     ArrayRef<char> Name;
     ArrayRef<char> SegmentName;
@@ -396,7 +392,7 @@ void MachODumper::printSymbol(symbol_ite
 
   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));





More information about the llvm-commits mailing list