]> granicus.if.org Git - clang/commitdiff
Remove misleading comment about using cc1 option table.
authorHans Wennborg <hans@hanshq.net>
Thu, 8 Aug 2013 17:34:27 +0000 (17:34 +0000)
committerHans Wennborg <hans@hanshq.net>
Thu, 8 Aug 2013 17:34:27 +0000 (17:34 +0000)
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

tools/driver/driver.cpp

index ac062fb0b5475516f795cd9e6e6fc604f7027e62..00bf302b6b494668fd4ae9b2045b3da0d7a0f1f3 100644 (file)
@@ -329,11 +329,11 @@ int main(int argc_, const char **argv_) {
 
   IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions;
   {
-    // Note that ParseDiagnosticArgs() uses the cc1 option table.
-    OwningPtr<OptTable> CC1Opts(createDriverOptTable());
+    OwningPtr<OptTable> Opts(createDriverOptTable());
     unsigned MissingArgIndex, MissingArgCount;
-    OwningPtr<InputArgList> Args(CC1Opts->ParseArgs(argv.begin()+1, argv.end(),
-                                            MissingArgIndex, MissingArgCount));
+    OwningPtr<InputArgList> 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.