summaryrefslogtreecommitdiffstats
path: root/clang/Driver/PrintPreprocessedOutput.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/Driver/PrintPreprocessedOutput.cpp')
-rw-r--r--clang/Driver/PrintPreprocessedOutput.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/Driver/PrintPreprocessedOutput.cpp b/clang/Driver/PrintPreprocessedOutput.cpp
index fcdbd20c965..526447b94f4 100644
--- a/clang/Driver/PrintPreprocessedOutput.cpp
+++ b/clang/Driver/PrintPreprocessedOutput.cpp
@@ -171,7 +171,7 @@ static void HandleFileChange(SourceLocation Loc,
}
EModeCurLine = SourceMgr.getLineNumber(Loc);
- EModeCurFilename = Lexer::Stringify(SourceMgr.getSourceName(Loc));
+ EModeCurFilename = '"' + Lexer::Stringify(SourceMgr.getSourceName(Loc)) + '"';
EmodeFileType = FileType;
if (EmodeEmittedTokensOnThisLine) {
OpenPOWER on IntegriCloud