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
26 lines
491 B
Plaintext
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
|