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
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user