]> granicus.if.org Git - clang/commit
a ridiculous amount of propagation through the backend later,
authorChris Lattner <sabre@nondot.org>
Wed, 7 Apr 2010 05:46:54 +0000 (05:46 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 7 Apr 2010 05:46:54 +0000 (05:46 +0000)
commitfc1a9c312d249a2c7458f763f848ba42685c23f8
tree895b7ffbfe0f6fbee468c04cbc3a46a759b8cd29
parent74626d6ef2e194fcc911e071556660ff331eb4a8
a ridiculous amount of propagation through the backend later,
have the code generate slap a srcloc metadata on inline asm nodes.
This allows us to diagnose invalid inline asms with such nice
diagnostics as:

<inline asm>:1:2: error: unrecognized instruction
        abc incl    %eax
        ^
asm.c:2:12: note: generated from here
  __asm__ ("abc incl    %0" : "+r" (X));
           ^
2 diagnostics generated.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100608 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGStmt.cpp