r187993 - Remove misleading comment about using cc1 option table.

Hans Wennborg hans at hanshq.net
Thu Aug 8 10:34:27 PDT 2013


Author: hans
Date: Thu Aug  8 12:34:27 2013
New Revision: 187993

URL: http://llvm.org/viewvc/llvm-project?rev=187993&view=rev
Log:
Remove misleading comment about using cc1 option table.

There hasn't been a separate cc1 option table since r155916.

Modified:
    cfe/trunk/tools/driver/driver.cpp

Modified: cfe/trunk/tools/driver/driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/driver/driver.cpp?rev=187993&r1=187992&r2=187993&view=diff
==============================================================================
--- cfe/trunk/tools/driver/driver.cpp (original)
+++ cfe/trunk/tools/driver/driver.cpp Thu Aug  8 12:34:27 2013
@@ -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.





More information about the cfe-commits mailing list