diff options
author | Zachary Turner <zturner@google.com> | 2018-11-13 20:07:57 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2018-11-13 20:07:57 +0000 |
commit | 2af3416618e6d521eade365eecf5ab353cdf5b6c (patch) | |
tree | 63c4543b2b7c240feadfdf6a9e169bb7c8b4ea92 /llvm/lib/IR/DIBuilder.cpp | |
parent | 03a24052f394f7e3e4713dd409d8fa3a126643f9 (diff) | |
download | bcm5719-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