IAS: Use the root macro instanciation for location
authorFrederic Riss <friss@apple.com>
Thu, 25 Jun 2015 21:57:33 +0000 (21:57 +0000)
committerFrederic Riss <friss@apple.com>
Thu, 25 Jun 2015 21:57:33 +0000 (21:57 +0000)
commitd26d587fbe338822ae7de4fb5f3c6855e951b572
tree5eed52a727c0cf4247bdeeac921f156c1ec5790a
parent4cbb2db3ab7c598a0ab1f0a955639384d7ad7b97
IAS: Use the root macro instanciation for location

r224810 fixed the handling of macro debug locations in AsmParser. This patch
fixes the logic to actually do what was intended: it uses the first macro of
the macro stack instead of the last one. The updated testcase shows that the
current scheme doesn't work when macro instanciations are nested and multiple
files are used.

Reviewers: compnerd

Differential Revision: http://reviews.llvm.org/D10463

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240705 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/MCParser/AsmParser.cpp
test/DebugInfo/X86/asm-macro-line-number.s