summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo/X86/asm-macro-line-number.s
Commit message (Collapse)AuthorAgeFilesLines
* [DebugInfo] Fix tests missed by r362148Paul Robinson2019-05-211-5/+5
| | | | llvm-svn: 361251
* IAS: Use the root macro instanciation for locationFrederic Riss2015-06-251-0/+14
| | | | | | | | | | | | | | 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
* IAS: correct debug line info for asm macrosSaleem Abdulrasool2014-12-241-0/+20
Correct the line information generation for preprocessed assembly. Although we tracked the source information for the macro instantiation, we failed to account for the fact that we were instantiating a macro, which is populated into a new buffer and that the line information would be relative to the definition rather than the actual instantiation location. This could cause the line number associated with the statement to be very high due to wrapping of the difference calculated for the preprocessor line information emitted into the stream. Properly calculate the line for the macro instantiation, referencing the line where the macro is actually used as GCC/gas do. The test case uses x86, though the same problem exists on any other target using the LLVM IAS. llvm-svn: 224810
OpenPOWER on IntegriCloud