Remove the -import-module option. It's no longer useful
llvm-svn: 138681
This commit is contained in:
@@ -498,10 +498,6 @@ static void FrontendOptsToArgs(const FrontendOptions &Opts,
|
||||
Res.push_back("-ast-merge");
|
||||
Res.push_back(Opts.ASTMergeFiles[i]);
|
||||
}
|
||||
for (unsigned i = 0, e = Opts.Modules.size(); i != e; ++i) {
|
||||
Res.push_back("-import-module");
|
||||
Res.push_back(Opts.Modules[i]);
|
||||
}
|
||||
for (unsigned i = 0, e = Opts.LLVMArgs.size(); i != e; ++i) {
|
||||
Res.push_back("-mllvm");
|
||||
Res.push_back(Opts.LLVMArgs[i]);
|
||||
@@ -776,10 +772,6 @@ static void PreprocessorOptsToArgs(const PreprocessorOptions &Opts,
|
||||
Res.push_back("-include");
|
||||
Res.push_back(Opts.Includes[i]);
|
||||
}
|
||||
for (unsigned i = 0, e = Opts.Modules.size(); i != e; ++i) {
|
||||
Res.push_back("-import_module");
|
||||
Res.push_back(Opts.Modules[i]);
|
||||
}
|
||||
for (unsigned i = 0, e = Opts.MacroIncludes.size(); i != e; ++i) {
|
||||
Res.push_back("-imacros");
|
||||
Res.push_back(Opts.MacroIncludes[i]);
|
||||
@@ -1284,7 +1276,6 @@ static InputKind ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args,
|
||||
Opts.ASTMergeFiles = Args.getAllArgValues(OPT_ast_merge);
|
||||
Opts.LLVMArgs = Args.getAllArgValues(OPT_mllvm);
|
||||
Opts.FixWhatYouCan = Args.hasArg(OPT_fix_what_you_can);
|
||||
Opts.Modules = Args.getAllArgValues(OPT_import_module);
|
||||
|
||||
Opts.ARCMTAction = FrontendOptions::ARCMT_None;
|
||||
if (const Arg *A = Args.getLastArg(OPT_arcmt_check,
|
||||
@@ -1815,12 +1806,6 @@ static void ParsePreprocessorArgs(PreprocessorOptions &Opts, ArgList &Args,
|
||||
Opts.ChainedIncludes.push_back(A->getValue(Args));
|
||||
}
|
||||
|
||||
for (arg_iterator it = Args.filtered_begin(OPT_import_module),
|
||||
ie = Args.filtered_end(); it != ie; ++it) {
|
||||
const Arg *A = *it;
|
||||
Opts.Modules.push_back(A->getValue(Args));
|
||||
}
|
||||
|
||||
// Include 'altivec.h' if -faltivec option present
|
||||
if (Args.hasArg(OPT_faltivec))
|
||||
Opts.Includes.push_back("altivec.h");
|
||||
|
||||
Reference in New Issue
Block a user