From: Hans Wennborg Date: Thu, 8 Aug 2013 17:34:27 +0000 (+0000) Subject: Remove misleading comment about using cc1 option table. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f3db6835d15c9d0f6345d78c1569e730dfdbb93e;p=clang Remove misleading comment about using cc1 option table. There hasn't been a separate cc1 option table since r155916. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187993 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/driver/driver.cpp b/tools/driver/driver.cpp index ac062fb0b5..00bf302b6b 100644 --- a/tools/driver/driver.cpp +++ b/tools/driver/driver.cpp @@ -329,11 +329,11 @@ int main(int argc_, const char **argv_) { IntrusiveRefCntPtr DiagOpts = new DiagnosticOptions; { - // Note that ParseDiagnosticArgs() uses the cc1 option table. - OwningPtr CC1Opts(createDriverOptTable()); + OwningPtr Opts(createDriverOptTable()); unsigned MissingArgIndex, MissingArgCount; - OwningPtr Args(CC1Opts->ParseArgs(argv.begin()+1, argv.end(), - MissingArgIndex, MissingArgCount)); + OwningPtr Args(Opts->ParseArgs(argv.begin()+1, argv.end(), + MissingArgIndex, + MissingArgCount)); // We ignore MissingArgCount and the return value of ParseDiagnosticArgs. // Any errors that would be diagnosed here will also be diagnosed later, // when the DiagnosticsEngine actually exists.