| ... | ... | @@ -174,11 +174,11 @@ bool AssemblerInvocation::CreateFromArgs(AssemblerInvocation &Opts, |
| 174 | 174 | bool Success = true; |
| 175 | 175 | |
| 176 | 176 | // Parse the arguments. |
| 177 | | std::unique_ptr<OptTable> OptTbl(createDriverOptTable()); |
| 177 | const OptTable &OptTbl = getDriverOptTable(); |
| 178 | 178 | |
| 179 | 179 | const unsigned IncludedFlagsBitmask = options::CC1AsOption; |
| 180 | 180 | unsigned MissingArgIndex, MissingArgCount; |
| 181 | | InputArgList Args = OptTbl->ParseArgs(Argv, MissingArgIndex, MissingArgCount, |
| 181 | InputArgList Args = OptTbl.ParseArgs(Argv, MissingArgIndex, MissingArgCount, |
| 182 | 182 | IncludedFlagsBitmask); |
| 183 | 183 | |
| 184 | 184 | // Check for missing argument error. |
| ... | ... | @@ -192,7 +192,7 @@ bool AssemblerInvocation::CreateFromArgs(AssemblerInvocation &Opts, |
| 192 | 192 | for (const Arg *A : Args.filtered(OPT_UNKNOWN)) { |
| 193 | 193 | auto ArgString = A->getAsString(Args); |
| 194 | 194 | std::string Nearest; |
| 195 | | if (OptTbl->findNearest(ArgString, Nearest, IncludedFlagsBitmask) > 1) |
| 195 | if (OptTbl.findNearest(ArgString, Nearest, IncludedFlagsBitmask) > 1) |
| 196 | 196 | Diags.Report(diag::err_drv_unknown_argument) << ArgString; |
| 197 | 197 | else |
| 198 | 198 | Diags.Report(diag::err_drv_unknown_argument_with_suggestion) |
| ... | ... | @@ -569,8 +569,8 @@ int cc1as_main(ArrayRef<const char *> Argv, const char *Argv0, void *MainAddr) { |
| 569 | 569 | return 1; |
| 570 | 570 | |
| 571 | 571 | if (Asm.ShowHelp) { |
| 572 | | std::unique_ptr<OptTable> Opts(driver::createDriverOptTable()); |
| 573 | | Opts->PrintHelp(llvm::outs(), "clang -cc1as [options] file...", |
| 572 | const OptTable &Opts = getDriverOptTable(); |
| 573 | Opts.PrintHelp(llvm::outs(), "clang -cc1as [options] file...", |
| 574 | 574 | "Clang Integrated Assembler", |
| 575 | 575 | /*Include=*/driver::options::CC1AsOption, /*Exclude=*/0, |
| 576 | 576 | /*ShowAllAliases=*/false); |