Adds support for -Wa,-defsym,abc=1 option.
Related llvm patch: https://reviews.llvm.org/D26214
Differential D26213
[clang] Implement support for -defsym assembler option mgrang on Nov 1 2016, 2:02 PM. Authored by
Details
Diff Detail
Event TimelineComment Actions I'm slightly wary of that test, and it would be better to split between driver and defsym features. See mips-ias-Wa.s for the driver test. Adding Saleem, as he also had some good fiddling on the driver. I'm not sure how we'll test the asm changes, though. Your test is valid, but we've moved from testing asm in Clang. Are those symbols exported to IR in any form? Global values? Adding Eric, as he had a go on removing the code tests in Clang.
Comment Actions I think that we do need some testing for the definition itself propagating correctly. I think that the best way to handle this is to add command line handling for --defsym to llvm-mc and then using that to assemble bits of assembly on the LLVM side rather than the clang side. We could do that first, and then wire that up through to clang in a subsequent change (which this change does).
|
These need -o /dev/null, otherwise compiler will attempt to create a file which is not something we want here.
Fixed in r288406.