mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-01 07:30:31 +00:00
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
This commit is contained in:
parent
27cfb7a41d
commit
7ed86b085e
@ -134,10 +134,6 @@ static const EnumEntry<unsigned> MachOSymbolTypes[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
enum {
|
|
||||||
N_STAB = 0xE0
|
|
||||||
};
|
|
||||||
|
|
||||||
struct MachOSection {
|
struct MachOSection {
|
||||||
ArrayRef<char> Name;
|
ArrayRef<char> Name;
|
||||||
ArrayRef<char> SegmentName;
|
ArrayRef<char> SegmentName;
|
||||||
@ -396,7 +392,7 @@ void MachODumper::printSymbol(symbol_iterator SymI) {
|
|||||||
|
|
||||||
DictScope D(W, "Symbol");
|
DictScope D(W, "Symbol");
|
||||||
W.printNumber("Name", SymbolName, Symbol.StringIndex);
|
W.printNumber("Name", SymbolName, Symbol.StringIndex);
|
||||||
if (Symbol.Type & N_STAB) {
|
if (Symbol.Type & MachO::N_STAB) {
|
||||||
W.printHex ("Type", "SymDebugTable", Symbol.Type);
|
W.printHex ("Type", "SymDebugTable", Symbol.Type);
|
||||||
} else {
|
} else {
|
||||||
W.printEnum("Type", Symbol.Type, makeArrayRef(MachOSymbolTypes));
|
W.printEnum("Type", Symbol.Type, makeArrayRef(MachOSymbolTypes));
|
||||||
|
Loading…
Reference in New Issue
Block a user