summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo/PDB
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-03-08 21:42:24 +0000
committerZachary Turner <zturner@google.com>2016-03-08 21:42:24 +0000
commita99000dd311b972e35f889c61bbdbc22a1680abd (patch)
tree3dd5f55d15378b19e533c626075341f8c680e5ce /llvm/test/DebugInfo/PDB
parent8d950ce18c6d8ab3b43a4950cecbb17a83914910 (diff)
downloadbcm5719-llvm-a99000dd311b972e35f889c61bbdbc22a1680abd.tar.gz
bcm5719-llvm-a99000dd311b972e35f889c61bbdbc22a1680abd.zip
[llvm-pdbdump] Dump line table information.
This patch adds the -lines command line option which will dump source/line information for each compiland and source file. llvm-svn: 262962
Diffstat (limited to 'llvm/test/DebugInfo/PDB')
-rw-r--r--llvm/test/DebugInfo/PDB/DIA/pdbdump-linenumbers.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/DebugInfo/PDB/DIA/pdbdump-linenumbers.test b/llvm/test/DebugInfo/PDB/DIA/pdbdump-linenumbers.test
new file mode 100644
index 00000000000..322660a62b1
--- /dev/null
+++ b/llvm/test/DebugInfo/PDB/DIA/pdbdump-linenumbers.test
@@ -0,0 +1,12 @@
+; RUN: llvm-pdbdump -lines %p/../Inputs/symbolformat.pdb | FileCheck --check-prefix=LINE_NUMS %s
+
+; LINE_NUMS: llvm\test\debuginfo\pdb\inputs\symbolformat-fpo.cpp
+; LINE_NUMS: Line 5, Address: [0x000011a0 - 0x000011a5] (6 bytes)
+; LINE_NUMS: Line 6, Address: [0x000011a6 - 0x000011a6] (1 bytes)
+; LINE_NUMS: llvm\test\debuginfo\pdb\inputs\symbolformat.cpp
+; LINE_NUMS: Line 6, Address: [0x00001060 - 0x00001066] (7 bytes)
+; LINE_NUMS: Line 72, Address: [0x000010d0 - 0x000010d1] (2 bytes)
+; LINE_NUMS: Line 73, Address: [0x000010d2 - 0x000010d5] (4 bytes)
+; LINE_NUMS: Line 28, Address: [0x00001170 - 0x0000117a] (11 bytes)
+; LINE_NUMS: Line 21, Address: [0x00001180 - 0x0000118a] (11 bytes)
+; LINE_NUMS: Line 20, Address: [0x00001190 - 0x0000119a] (11 bytes) \ No newline at end of file
OpenPOWER on IntegriCloud