[cfe-commits] r66480 - /cfe/trunk/Driver/clang.cpp

Chris Lattner sabre at nondot.org
Mon Mar 9 15:05:03 PDT 2009


Author: lattner
Date: Mon Mar  9 17:05:03 2009
New Revision: 66480

URL: http://llvm.org/viewvc/llvm-project?rev=66480&view=rev
Log:
move -g option down into rest of codegen section

Modified:
    cfe/trunk/Driver/clang.cpp

Modified: cfe/trunk/Driver/clang.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/clang.cpp?rev=66480&r1=66479&r2=66480&view=diff

==============================================================================
--- cfe/trunk/Driver/clang.cpp (original)
+++ cfe/trunk/Driver/clang.cpp Mon Mar  9 17:05:03 2009
@@ -165,13 +165,6 @@
  llvm::cl::value_desc("path"),
  llvm::cl::desc("Specify output file (for --serialize, this is a directory)"));
 
-//===----------------------------------------------------------------------===//
-// Code Generator Options
-//===----------------------------------------------------------------------===//
-static llvm::cl::opt<bool>
-GenerateDebugInfo("g",
-                  llvm::cl::desc("Generate source level debug information"));
-
 
 //===----------------------------------------------------------------------===//
 // PTH.
@@ -1142,6 +1135,10 @@
 //===----------------------------------------------------------------------===//
 
 static llvm::cl::opt<bool>
+GenerateDebugInfo("g",
+                  llvm::cl::desc("Generate source level debug information"));
+
+static llvm::cl::opt<bool>
 OptSize("Os", llvm::cl::desc("Optimize for size"));
 
 // It might be nice to add bounds to the CommandLine library directly.
@@ -1198,8 +1195,9 @@
 //===----------------------------------------------------------------------===//
 
 /// CreateASTConsumer - Create the ASTConsumer for the corresponding program
-///  action.  These consumers can operate on both ASTs that are freshly
-///  parsed from source files as well as those deserialized from Bitcode.
+/// action.  These consumers can operate on both ASTs that are freshly
+/// parsed from source files as well as those deserialized from Bitcode.
+/// Note that PP and PPF may be null here.
 static ASTConsumer *CreateASTConsumer(const std::string& InFile,
                                       Diagnostic& Diag, FileManager& FileMgr, 
                                       const LangOptions& LangOpts,





More information about the cfe-commits mailing list