summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/DIBuilder.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2018-11-13 20:07:57 +0000
committerZachary Turner <zturner@google.com>2018-11-13 20:07:57 +0000
commit2af3416618e6d521eade365eecf5ab353cdf5b6c (patch)
tree63c4543b2b7c240feadfdf6a9e169bb7c8b4ea92 /llvm/lib/IR/DIBuilder.cpp
parent03a24052f394f7e3e4713dd409d8fa3a126643f9 (diff)
downloadbcm5719-llvm-2af3416618e6d521eade365eecf5ab353cdf5b6c.tar.gz
bcm5719-llvm-2af3416618e6d521eade365eecf5ab353cdf5b6c.zip
[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
Diffstat (limited to 'llvm/lib/IR/DIBuilder.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud