createDriverOptTable became a singleton.
See llvm/llvm-project@433927595d
This commit is contained in:
parent
6fb14e3f8a
commit
dfcbac8b76
@ -116,10 +116,10 @@ CompilerOptions::CompilerOptions(int argc, const char* const* argv)
|
||||
void CompilerOptions::Parse(int argc, const char* const argv[],
|
||||
std::vector<std::string>* Inputs) {
|
||||
unsigned MissingArgIndex, MissingArgCount;
|
||||
std::unique_ptr<OptTable> OptsC1(createDriverOptTable());
|
||||
const OptTable& OptsC1 = getDriverOptTable();
|
||||
ArrayRef<const char *> ArgStrings(argv+1, argv + argc);
|
||||
|
||||
InputArgList Args(OptsC1->ParseArgs(ArgStrings, MissingArgIndex,
|
||||
InputArgList Args(OptsC1.ParseArgs(ArgStrings, MissingArgIndex,
|
||||
MissingArgCount, 0,
|
||||
options::NoDriverOption | options::CLOption));
|
||||
|
||||
@ -242,7 +242,7 @@ void InvocationOptions::PrintHelp() {
|
||||
|
||||
cling::outs() << "\n\n";
|
||||
|
||||
std::unique_ptr<OptTable> OptsC1(createDriverOptTable());
|
||||
OptsC1->PrintHelp(cling::outs(), "clang -cc1",
|
||||
"LLVM 'Clang' Compiler: http://clang.llvm.org");
|
||||
const OptTable& OptsC1 = getDriverOptTable();
|
||||
OptsC1.PrintHelp(cling::outs(), "clang -cc1",
|
||||
"LLVM 'Clang' Compiler: http://clang.llvm.org");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user