aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorDavid Spickett <david.spickett@linaro.org>2021-05-11 14:33:53 +0000
committerDavid Spickett <david.spickett@linaro.org>2021-05-14 08:22:57 +0000
commit2db090a2ebd76f120bfae4fbe4b7241667aa585e (patch)
treeda4f4ea8838e9a10120d930fbef9197587714484 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent444f02d73c6d21bf9fe990ee922d995a33ef8de5 (diff)
downloadllvm-2db090a2ebd76f120bfae4fbe4b7241667aa585e.zip
llvm-2db090a2ebd76f120bfae4fbe4b7241667aa585e.tar.gz
llvm-2db090a2ebd76f120bfae4fbe4b7241667aa585e.tar.bz2
[llvm][AsmPrinter] Restore source location to register clobber warning
Since 5de2d189e6ad466a1f0616195e8c524a4eb3cbc0 this particular warning hasn't had the location of the source file containing the inline assembly. Fix this by reporting via LLVMContext. Which means that we no longer have the "instantiated into assembly here" lines but they were going to point to the start of the inline asm string anyway. This message is already tested via IR in llvm. However we won't have the required location info there so I've added a C file test in clang to cover it. (though strictly, this is testing llvm code) Reviewed By: ychen Differential Revision: https://reviews.llvm.org/D102244
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions