summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2017-06-09 21:24:02 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2017-06-09 21:24:02 +0000
commit86a3ef5b03b2cc7c70b5d8870775e7fc40069f00 (patch)
treeeb3c2fc04eb49480636bcf2a4b5101975e7ab663 /clang/lib/Frontend/CompilerInvocation.cpp
parent7ad13f259f203d6d25bbe263c38e55976a521c33 (diff)
downloadbcm5719-llvm-86a3ef5b03b2cc7c70b5d8870775e7fc40069f00.tar.gz
bcm5719-llvm-86a3ef5b03b2cc7c70b5d8870775e7fc40069f00.zip
Add -frewrite-imports flag.
If specified, when preprocessing, the contents of imported .pcm files will be included in preprocessed output. The resulting preprocessed file can then be compiled standalone without the module sources or .pcm files. llvm-svn: 305116
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index 6e52e7e62eb..bb635b7ad71 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -2501,6 +2501,7 @@ static void ParsePreprocessorOutputArgs(PreprocessorOutputOptions &Opts,
Opts.ShowMacros = Args.hasArg(OPT_dM) || Args.hasArg(OPT_dD);
Opts.ShowIncludeDirectives = Args.hasArg(OPT_dI);
Opts.RewriteIncludes = Args.hasArg(OPT_frewrite_includes);
+ Opts.RewriteImports = Args.hasArg(OPT_frewrite_imports);
Opts.UseLineDirectives = Args.hasArg(OPT_fuse_line_directives);
}
OpenPOWER on IntegriCloud