[DebugInfo] Handle -main-file-name correctly for asm source.
authorPaul Robinson <paul.robinson@sony.com>
Tue, 21 May 2019 11:52:27 +0000 (11:52 +0000)
committerPaul Robinson <paul.robinson@sony.com>
Tue, 21 May 2019 11:52:27 +0000 (11:52 +0000)
commit116e8d4876f9745119671c99c12924129526237b
tree5862e11704c598cd05f5b4b9296e1031180dbc33
parent35150bb53417f9ac8ad93e573a057a266c84761e
[DebugInfo] Handle -main-file-name correctly for asm source.
This option provides only the base filename, not a full relative path.

Part of the fix for PR41839.

Differential Revision: https://reviews.llvm.org/D62071

llvm-svn: 361245
llvm/lib/MC/MCContext.cpp
llvm/test/DebugInfo/X86/main-file-name.s [deleted file]
llvm/test/MC/ELF/debug-main-file.s [new file with mode: 0644]