Using COFF's .def directive in module assembly used to crash ThinLTO
with "this directive only supported on COFF targets" when getting
symbol information in ModuleSymbolTable. This change allows
ModuleSymbolTable to process such code and adds a test to verify that
the .def directive has the desired effect on the native object file,
with and without ThinLTO.
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 27180 Build 27179: arc lint + arc unit
Event Timeline
clang/test/CodeGen/inline-asm-coff.c | ||
---|---|---|
3–4 | This test isn't going to do the right thing on Windows ARM, and I don't think we need this high-level of an integration test. I'd recommend writing a .ll test similar to the llvm/test/Transforms/ThinLTOBitcodeWriter/symver.ll one. You should be able to use the same assembly as module level asm in LLVM IR, and exercise the same behavior. |
llvm/test/MC/COFF/module-asm-coff.ll | ||
---|---|---|
1 ↗ | (On Diff #183165) | This isn't really a test of the MC layer. Can it be simplified to use llvm-nm and moved under test/Object? |
This test isn't going to do the right thing on Windows ARM, and I don't think we need this high-level of an integration test.
I'd recommend writing a .ll test similar to the llvm/test/Transforms/ThinLTOBitcodeWriter/symver.ll one. You should be able to use the same assembly as module level asm in LLVM IR, and exercise the same behavior.