mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-23 03:39:42 +00:00
[CodeView] Dump BuildInfoSym and ProcSym type indices
I need to print the type index in hex so that I can match it in FileCheck for a test I'm writing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308107 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0b189e17f8
commit
4a5ccd44d5
@ -848,7 +848,7 @@ public:
|
||||
: SymbolRecord(SymbolRecordKind::BuildInfoSym),
|
||||
RecordOffset(RecordOffset) {}
|
||||
|
||||
uint32_t BuildId;
|
||||
TypeIndex BuildId;
|
||||
|
||||
uint32_t RecordOffset;
|
||||
};
|
||||
|
@ -186,7 +186,7 @@ Error CVSymbolDumperImpl::visitKnownRecord(CVSymbol &CVR,
|
||||
|
||||
Error CVSymbolDumperImpl::visitKnownRecord(CVSymbol &CVR,
|
||||
BuildInfoSym &BuildInfo) {
|
||||
W.printNumber("BuildId", BuildInfo.BuildId);
|
||||
printTypeIndex("BuildId", BuildInfo.BuildId);
|
||||
return Error::success();
|
||||
}
|
||||
|
||||
|
@ -472,13 +472,13 @@ ALL-NEXT: frontend = 18.0.31101.0, backend = 18.0.31101.0
|
||||
ALL-NEXT: flags = security checks
|
||||
ALL-NEXT: 120 | S_GPROC32 [size = 44] `main`
|
||||
ALL-NEXT: parent = 0, end = 196, addr = 0001:0016, code size = 10
|
||||
ALL-NEXT: debug start = 3, debug end = 8, flags = has fp
|
||||
ALL-NEXT: type = `0x1001 (int ())`, debug start = 3, debug end = 8, flags = has fp
|
||||
ALL-NEXT: 164 | S_FRAMEPROC [size = 32]
|
||||
ALL-NEXT: size = 0, padding size = 0, offset to padding = 0
|
||||
ALL-NEXT: bytes of callee saved registers = 0, exception handler addr = 0000:0000
|
||||
ALL-NEXT: flags = has async eh | opt speed
|
||||
ALL-NEXT: 196 | S_END [size = 4]
|
||||
ALL-NEXT: 200 | S_BUILDINFO [size = 8] BuildId = `4110`
|
||||
ALL-NEXT: 200 | S_BUILDINFO [size = 8] BuildId = `0x100E`
|
||||
ALL-NEXT: Mod 0001 | `* Linker *`:
|
||||
ALL-NEXT: 4 | S_OBJNAME [size = 20] sig=0, `* Linker *`
|
||||
ALL-NEXT: 24 | S_COMPILE3 [size = 48]
|
||||
|
@ -725,8 +725,9 @@ Error MinimalSymbolDumper::visitKnownRecord(CVSymbol &CVR, ProcSym &Proc) {
|
||||
Proc.Parent, Proc.End,
|
||||
formatSegmentOffset(Proc.Segment, Proc.CodeOffset),
|
||||
Proc.CodeSize);
|
||||
P.formatLine("debug start = {0}, debug end = {1}, flags = {2}", Proc.DbgStart,
|
||||
Proc.DbgEnd,
|
||||
// FIXME: It seems FunctionType is sometimes an id and sometimes a type.
|
||||
P.formatLine("type = `{0}`, debug start = {1}, debug end = {2}, flags = {3}",
|
||||
typeIndex(Proc.FunctionType), Proc.DbgStart, Proc.DbgEnd,
|
||||
formatProcSymFlags(P.getIndentLevel() + 9, Proc.Flags));
|
||||
return Error::success();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user