[llvm] f3bd773 - Replace pdb file used in llvm-symbolizer test with a smaller file.
Amy Huang via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 3 09:59:15 PDT 2022
Author: Amy Huang
Date: 2022-08-03T09:58:26-07:00
New Revision: f3bd773abd8e0bf16229c2fb2fe27eae90a0c967
URL: https://github.com/llvm/llvm-project/commit/f3bd773abd8e0bf16229c2fb2fe27eae90a0c967
DIFF: https://github.com/llvm/llvm-project/commit/f3bd773abd8e0bf16229c2fb2fe27eae90a0c967.diff
LOG: Replace pdb file used in llvm-symbolizer test with a smaller file.
Reduce the size of the test-columns.pdb file from 6MB to 72KB by not
including standard libraries when building. Also update the instructions
for building the exe/pdb files.
context https://reviews.llvm.org/D81950#3692893
Differential Revision: https://reviews.llvm.org/D131035
Added:
Modified:
llvm/test/tools/llvm-symbolizer/pdb/Inputs/test-columns.exe
llvm/test/tools/llvm-symbolizer/pdb/Inputs/test-columns.pdb
llvm/test/tools/llvm-symbolizer/pdb/Inputs/test.cpp
llvm/test/tools/llvm-symbolizer/pdb/pdb-columns.test
Removed:
################################################################################
diff --git a/llvm/test/tools/llvm-symbolizer/pdb/Inputs/test-columns.exe b/llvm/test/tools/llvm-symbolizer/pdb/Inputs/test-columns.exe
index 1d9a40dc74e5d..cde6f3a89d558 100644
Binary files a/llvm/test/tools/llvm-symbolizer/pdb/Inputs/test-columns.exe and b/llvm/test/tools/llvm-symbolizer/pdb/Inputs/test-columns.exe
diff er
diff --git a/llvm/test/tools/llvm-symbolizer/pdb/Inputs/test-columns.pdb b/llvm/test/tools/llvm-symbolizer/pdb/Inputs/test-columns.pdb
index cd1093270e843..81536bcd9d068 100644
Binary files a/llvm/test/tools/llvm-symbolizer/pdb/Inputs/test-columns.pdb and b/llvm/test/tools/llvm-symbolizer/pdb/Inputs/test-columns.pdb
diff er
diff --git a/llvm/test/tools/llvm-symbolizer/pdb/Inputs/test.cpp b/llvm/test/tools/llvm-symbolizer/pdb/Inputs/test.cpp
index e1ac50f2e820f..79bdcda5924c8 100644
--- a/llvm/test/tools/llvm-symbolizer/pdb/Inputs/test.cpp
+++ b/llvm/test/tools/llvm-symbolizer/pdb/Inputs/test.cpp
@@ -1,7 +1,6 @@
-// To generate the corresponding EXE/PDB, run:
-// cl /Zi test.cpp
-// To generate the PDB with column numbers, run:
-// clang-cl /Zi -gcolumn-info test.cpp
+// To generate the corresponding EXE/PDB (add -gcolumn-info for line columns):
+// clang -cc1 -triple x86_64-pc-windows-msvc -gcodeview -debug-info-kind=constructor -emit-obj test.cpp
+// lld-link test.obj -debug -entry:main
namespace NS {
struct Foo {
diff --git a/llvm/test/tools/llvm-symbolizer/pdb/pdb-columns.test b/llvm/test/tools/llvm-symbolizer/pdb/pdb-columns.test
index 24e5b70c03eec..19457def2abc2 100644
--- a/llvm/test/tools/llvm-symbolizer/pdb/pdb-columns.test
+++ b/llvm/test/tools/llvm-symbolizer/pdb/pdb-columns.test
@@ -1,11 +1,11 @@
-RUN: echo 0x140006BA0 > %t.input
-RUN: echo 0x140006C00 >> %t.input
-RUN: echo 0x140006BB0 >> %t.input
-RUN: echo 0x140006C10 >> %t.input
-RUN: echo 0x140006C20 >> %t.input
-RUN: echo 0x140006C30 >> %t.input
-RUN: echo 0x140006C40 >> %t.input
-RUN: echo 0x140006C70 >> %t.input
+RUN: echo 0x140001000 > %t.input
+RUN: echo 0x140001030 >> %t.input
+RUN: echo 0x140001010 >> %t.input
+RUN: echo 0x140001040 >> %t.input
+RUN: echo 0x140001050 >> %t.input
+RUN: echo 0x140001060 >> %t.input
+RUN: echo 0x140001070 >> %t.input
+RUN: echo 0x140001080 >> %t.input
RUN: llvm-symbolizer --obj="%p/Inputs/test-columns.exe" < %t.input \
RUN: | FileCheck %s
More information about the llvm-commits
mailing list