summaryrefslogtreecommitdiff
path: root/lib/MC/MCParser/AsmParser.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2012-12-18 00:31:01 +0000
committerEric Christopher <echristo@gmail.com>2012-12-18 00:31:01 +0000
commit6c583141bf6b7a6b5f8125c1037ecbc089813288 (patch)
tree7e22b30849a5a15a044a3423d0e8df884992ceea /lib/MC/MCParser/AsmParser.cpp
parent2318ba16ef4414eec4bc43eaf6e0703c40e1c580 (diff)
downloadllvm-6c583141bf6b7a6b5f8125c1037ecbc089813288.tar.gz
llvm-6c583141bf6b7a6b5f8125c1037ecbc089813288.tar.bz2
llvm-6c583141bf6b7a6b5f8125c1037ecbc089813288.tar.xz
Add support for passing -main-file-name all the way through to
the assembler. Part of PR14624 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170390 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCParser/AsmParser.cpp')
-rw-r--r--lib/MC/MCParser/AsmParser.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/MC/MCParser/AsmParser.cpp b/lib/MC/MCParser/AsmParser.cpp
index e1a1f89f42..85d31872a7 100644
--- a/lib/MC/MCParser/AsmParser.cpp
+++ b/lib/MC/MCParser/AsmParser.cpp
@@ -613,7 +613,8 @@ bool AsmParser::Run(bool NoInitialTextSection, bool NoFinalize) {
getStreamer().EmitLabel(SectionStartSym);
getContext().setGenDwarfSectionStartSym(SectionStartSym);
getStreamer().EmitDwarfFileDirective(getContext().nextGenDwarfFileNumber(),
- StringRef(), SrcMgr.getMemoryBuffer(CurBuffer)->getBufferIdentifier());
+ StringRef(),
+ getContext().getMainFileName());
}
// While we have input, parse each statement.