[Driver][Core] Handle -mllvm option.

llvm-svn: 183347
This commit is contained in:
Rui Ueyama 2013-06-05 23:19:18 +00:00
parent 6fd15ca02e
commit 911d60a1e4

View File

@ -98,6 +98,12 @@ bool CoreDriver::parse(int argc, const char *argv[],
<< (*it)->getAsString(*parsedArgs) << "\n";
}
// Copy mllvm
for (llvm::opt::arg_iterator it = parsedArgs->filtered_begin(OPT_mllvm),
ie = parsedArgs->filtered_end();
it != ie; ++it) {
info.appendLLVMOption((*it)->getValue());
}
// Handle -e xxx
if (llvm::opt::Arg *entry = parsedArgs->getLastArg(OPT_entry))
@ -155,4 +161,3 @@ bool CoreDriver::parse(int argc, const char *argv[],
}
} // namespace lld