llvm/tools/llc
Sanne Wouda ff6c8c50fe [Assembler] Add test for !srcloc references in assembler diags
Summary:
clang adds !srcloc metadata to inline assembly in LLVM bitcode generated
for inline assembly in C.  The value of this !srcloc is passed to the
diagnostics handler if the inline assembly generates a diagnostic.
clang is able to turn this cookie back to a location in the C source
file.

To test this functionality without a dependency, make llc print the
!srcloc metadata if it is present.  The added test uses this mechanism
to test that the correct !srclocs are passed to the diag handler.

Reviewers: rengolin, rnk, echristo, grosbach, mehdi_amini

Reviewed By: mehdi_amini

Subscribers: mehdi_amini, llvm-commits

Differential Revision: https://reviews.llvm.org/D30167


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296465 91177308-0d34-0410-b5e6-96231b3b80d8
2017-02-28 10:34:48 +00:00
..
CMakeLists.txt llc: Update link components 2017-01-17 05:47:03 +00:00
llc.cpp [Assembler] Add test for !srcloc references in assembler diags 2017-02-28 10:34:48 +00:00
LLVMBuild.txt llc: Update LLVMBuild 2017-01-17 05:34:08 +00:00