diff options
Diffstat (limited to 'contrib/llvm/tools/clang/lib/Frontend/FrontendActions.cpp')
| -rw-r--r-- | contrib/llvm/tools/clang/lib/Frontend/FrontendActions.cpp | 7 | 
1 files changed, 5 insertions, 2 deletions
| diff --git a/contrib/llvm/tools/clang/lib/Frontend/FrontendActions.cpp b/contrib/llvm/tools/clang/lib/Frontend/FrontendActions.cpp index baaf93b167bc..89ac385ca45d 100644 --- a/contrib/llvm/tools/clang/lib/Frontend/FrontendActions.cpp +++ b/contrib/llvm/tools/clang/lib/Frontend/FrontendActions.cpp @@ -546,8 +546,11 @@ void PrintPreprocessedAction::ExecuteAction() {    // module itself before switching to the input buffer.    auto &Input = getCurrentInput();    if (Input.getKind().getFormat() == InputKind::ModuleMap) { -    if (Input.isFile()) -      (*OS) << "# 1 \"" << Input.getFile() << "\"\n"; +    if (Input.isFile()) { +      (*OS) << "# 1 \""; +      OS->write_escaped(Input.getFile()); +      (*OS) << "\"\n"; +    }      // FIXME: Include additional information here so that we don't need the      // original source files to exist on disk.      getCurrentModule()->print(*OS); | 
