summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/PrintPreprocessedOutput.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2016-04-08 01:23:59 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2016-04-08 01:23:59 +0000
commit6a6747d9dd8e89bb6199acf42f10359ed4584561 (patch)
treeedc905dad3d9ca13b9ac4ea13039037b1b88e012 /clang/lib/Frontend/PrintPreprocessedOutput.cpp
parent805873148afbbbd2a377340ec647a6c838570aa5 (diff)
downloadbcm5719-llvm-6a6747d9dd8e89bb6199acf42f10359ed4584561.tar.gz
bcm5719-llvm-6a6747d9dd8e89bb6199acf42f10359ed4584561.zip
[modules] Add a comment to explain why -E leaves some #includes in the preprocessed output.
llvm-svn: 265766
Diffstat (limited to 'clang/lib/Frontend/PrintPreprocessedOutput.cpp')
-rw-r--r--clang/lib/Frontend/PrintPreprocessedOutput.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Frontend/PrintPreprocessedOutput.cpp b/clang/lib/Frontend/PrintPreprocessedOutput.cpp
index 9524b58e3a2..77b80e612fb 100644
--- a/clang/lib/Frontend/PrintPreprocessedOutput.cpp
+++ b/clang/lib/Frontend/PrintPreprocessedOutput.cpp
@@ -336,7 +336,9 @@ void PrintPPOutputPPCallbacks::InclusionDirective(SourceLocation HashLoc,
OS << "#include "
<< (IsAngled ? '<' : '"')
<< FileName
- << (IsAngled ? '>' : '"');
+ << (IsAngled ? '>' : '"')
+ << " /* clang -E: implicit import for module "
+ << Imported->getFullModuleName() << " */";
}
// Since we want a newline after the @import, but not a #<line>, start a new
// line immediately.
OpenPOWER on IntegriCloud