aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-11-16 00:09:06 +0000
committerDouglas Gregor <dgregor@apple.com>2011-11-16 00:09:06 +0000
commit2b20cb87f5b6b48ca8d32f99a0ef5472605afefd (patch)
tree2d4f1581a1685a26bdf04bb954c6b1c823c04c25 /clang/lib/Frontend/CompilerInvocation.cpp
parent653183fd5cf7ec703f62b4a87b706f35c6b31dd6 (diff)
downloadllvm-2b20cb87f5b6b48ca8d32f99a0ef5472605afefd.zip
llvm-2b20cb87f5b6b48ca8d32f99a0ef5472605afefd.tar.gz
llvm-2b20cb87f5b6b48ca8d32f99a0ef5472605afefd.tar.bz2
Add support for building a module from a module map to the -cc1
interface. This is currently limited to modules with umbrella headers. llvm-svn: 144736
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index 015288c..58ee273 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -394,6 +394,7 @@ static const char *getActionName(frontend::ActionKind Kind) {
case frontend::EmitObj: return "-emit-obj";
case frontend::FixIt: return "-fixit";
case frontend::GenerateModule: return "-emit-module";
+ case frontend::GenerateModuleFromMap: return "-emit-module-from-map";
case frontend::GeneratePCH: return "-emit-pch";
case frontend::GeneratePTH: return "-emit-pth";
case frontend::InitOnly: return "-init-only";
@@ -1252,6 +1253,8 @@ static InputKind ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args,
Opts.ProgramAction = frontend::FixIt; break;
case OPT_emit_module:
Opts.ProgramAction = frontend::GenerateModule; break;
+ case OPT_emit_module_from_map:
+ Opts.ProgramAction = frontend::GenerateModuleFromMap; break;
case OPT_emit_pch:
Opts.ProgramAction = frontend::GeneratePCH; break;
case OPT_emit_pth: