Files
clang-p2996/lldb/lit/SymbolFile/NativePDB/Inputs/s_constant.lldbinit
Zachary Turner 2af3416618 [NativePDB] Add support for S_CONSTANT records.
clang-cl does not emit these, but MSVC does, so we need to be able to
handle them.

Because clang-cl does not generate them, it was a bit hard to write a
test. So what I had to do was get an PDB file with some S_CONSTANT
records in using cl and link, dump it using llvm-pdbutil dump -globals
-sym-data to get the bytes of the records, generate the same object file
using clang-cl but with -S to emit an assembly file, and replace all the
S_LDATA32 records with the bytes of the S_CONSTANT records. This way, we
can compile the file using llvm-mc and link it with lld-link.

Differential Revision: https://reviews.llvm.org/D54452

llvm-svn: 346787
2018-11-13 20:07:57 +00:00

26 lines
491 B
Plaintext

target variable GlobalLUEA
target variable GlobalLUEB
target variable GlobalLUEC
target variable GlobalLSEA
target variable GlobalLSEB
target variable GlobalLSEC
target variable GlobalUEA
target variable GlobalUEB
target variable GlobalUEC
target variable GlobalSEA
target variable GlobalSEB
target variable GlobalSEC
target variable GlobalSUEA
target variable GlobalSUEB
target variable GlobalSUEC
target variable GlobalSSEA
target variable GlobalSSEB
target variable GlobalSSEC
quit