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)
commit16238d90b2755009fa6cfc752863ef80a5adefe4
tree85c499fc2e3662b7e8e06b34abe9d5dcdc2e1ea5
parent594c028183b92988797f4c169b5e06a06de22ea0
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

llvm-svn: 240705
llvm/lib/MC/MCParser/AsmParser.cpp
llvm/test/DebugInfo/X86/asm-macro-line-number.s