summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo/PDB
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2018-09-11 22:00:50 +0000
committerReid Kleckner <rnk@google.com>2018-09-11 22:00:50 +0000
commita6f64265ea1a3651528370d4331f810686fbb39c (patch)
treef722b37d2d18baad0e887a7931c8ca5d57163aca /llvm/test/DebugInfo/PDB
parent72b27a6a397404f7c1faff7813e26fd1f84b6183 (diff)
downloadbcm5719-llvm-a6f64265ea1a3651528370d4331f810686fbb39c.tar.gz
bcm5719-llvm-a6f64265ea1a3651528370d4331f810686fbb39c.zip
[codeview] Decode and dump FP regs from S_FRAMEPROC records
Summary: There are two registers encoded in the S_FRAMEPROC flags: one for locals and one for parameters. The encoding is described by the ExpandEncodedBasePointerReg function in cvinfo.h. Two bits are used to indicate one of four possible values: 0: no register - Used when there are no variables. 1: SP / standard - Variables are stored relative to the standard SP for the ISA. 2: FP - Variables are addressed relative to the ISA frame pointer, i.e. EBP on x86. If realignment is required, parameters use this. If a dynamic alloca is used, locals will be EBP relative. 3: Alternative - Variables are stored relative to some alternative third callee-saved register. This is required to address highly aligned locals when there are dynamic stack adjustments. In this case, both the incoming SP saved in the standard FP and the current SP are at some dynamic offset from the locals. LLVM uses ESI in this case, MSVC uses EBX. Most of the changes in this patch are to pass around the CPU so that we can decode these into real, named architectural registers. Subscribers: hiraditya Differential Revision: https://reviews.llvm.org/D51894 llvm-svn: 341999
Diffstat (limited to 'llvm/test/DebugInfo/PDB')
-rw-r--r--llvm/test/DebugInfo/PDB/pdbdump-headers.test1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/test/DebugInfo/PDB/pdbdump-headers.test b/llvm/test/DebugInfo/PDB/pdbdump-headers.test
index b05e62078b7..99c37218e92 100644
--- a/llvm/test/DebugInfo/PDB/pdbdump-headers.test
+++ b/llvm/test/DebugInfo/PDB/pdbdump-headers.test
@@ -487,6 +487,7 @@ ALL-NEXT: type = `0x1001 (int ())`, debug start = 3, debug end = 8, fla
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: local fp reg = EBP, param fp reg = EBP
ALL-NEXT: flags = has async eh | opt speed
ALL-NEXT: 196 | S_END [size = 4]
ALL-NEXT: 200 | S_BUILDINFO [size = 8] BuildId = `0x100E`
OpenPOWER on IntegriCloud