summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo/PDB
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-08-02 22:31:39 +0000
committerZachary Turner <zturner@google.com>2017-08-02 22:31:39 +0000
commit9fb9d71d3e6a0515cb0ad416bc4400d47801888a (patch)
treef638998635c8f45b950a441be478e14b12b34c87 /llvm/test/DebugInfo/PDB
parent018338e503880ac56457692ad2dee3c38945d629 (diff)
downloadbcm5719-llvm-9fb9d71d3e6a0515cb0ad416bc4400d47801888a.tar.gz
bcm5719-llvm-9fb9d71d3e6a0515cb0ad416bc4400d47801888a.zip
[pdb/lld] Write a valid FPM.
The PDB reserves certain blocks for the FPM that describe which blocks in the file are allocated and which are free. We weren't filling that out at all, and in some cases we were even stomping it with incorrect data. This patch writes a correct FPM. Differential Revision: https://reviews.llvm.org/D36235 llvm-svn: 309896
Diffstat (limited to 'llvm/test/DebugInfo/PDB')
-rw-r--r--llvm/test/DebugInfo/PDB/write-fpm.test11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/DebugInfo/PDB/write-fpm.test b/llvm/test/DebugInfo/PDB/write-fpm.test
new file mode 100644
index 00000000000..6e2c67d009a
--- /dev/null
+++ b/llvm/test/DebugInfo/PDB/write-fpm.test
@@ -0,0 +1,11 @@
+; RUN: llvm-pdbutil yaml2pdb -pdb=%t.pdb %p/Inputs/one-symbol.yaml
+; RUN: llvm-pdbutil bytes -fpm %t.pdb | FileCheck %s
+
+
+CHECK: Free Page Map
+CHECK-NEXT: ============================================================
+CHECK-NEXT: Block 1 (
+CHECK-NEXT: 1000: 04F8FFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF |................................|
+CHECK-NEXT: 1020: FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF |................................|
+CHECK: 1FE0: FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF |................................|
+CHECK: )
OpenPOWER on IntegriCloud