From: Amy Huang Date: Tue, 2 Aug 2022 21:33:32 +0000 (-0700) Subject: Replace pdb file used in llvm-symbolizer test with a smaller file. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f3bd773abd8e0bf16229c2fb2fe27eae90a0c967;p=platform%2Fupstream%2Fllvm.git 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 --- 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 1d9a40d..cde6f3a 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 differ 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 cd10932..81536bc 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 differ diff --git a/llvm/test/tools/llvm-symbolizer/pdb/Inputs/test.cpp b/llvm/test/tools/llvm-symbolizer/pdb/Inputs/test.cpp index e1ac50f..79bdcda 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 24e5b70..19457de 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