Wire up support for diagnostic ranges in the ARMAsmParser.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 15 Apr 2012 17:04:27 +0000 (17:04 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 15 Apr 2012 17:04:27 +0000 (17:04 +0000)
commit362a05a635379ca1151e5ccf735295aed814dd4b
tree9fe20ac540847e20dc24901779498dd97130bea5
parent3ab32ea49ec13182f1397dc89c37551692f67140
Wire up support for diagnostic ranges in the ARMAsmParser.

As an example, attach range info to the "invalid instruction" message:

$ clang -arch arm -c asm.c
asm.c:2:11: error: invalid instruction
  __asm__("foo r0");
          ^
<inline asm>:1:2: note: instantiated into assembly here
        foo r0
        ^~~

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154765 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/AsmParser/ARMAsmParser.cpp