]> granicus.if.org Git - clang/commitdiff
move -g option down into rest of codegen section
authorChris Lattner <sabre@nondot.org>
Mon, 9 Mar 2009 22:05:03 +0000 (22:05 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 9 Mar 2009 22:05:03 +0000 (22:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66480 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/clang.cpp

index 7db892fc13c2488f5cfb724324dfed01f83dbaf4..59c3799023f73c4baad858d3c3782d02feea6600 100644 (file)
@@ -165,13 +165,6 @@ OutputFile("o",
  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.
@@ -1141,6 +1134,10 @@ static void ParseFile(Preprocessor &PP, MinimalAction *PA) {
 // Code generation options
 //===----------------------------------------------------------------------===//
 
+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"));
 
@@ -1198,8 +1195,9 @@ static void InitializeCompileOptions(CompileOptions &Opts) {
 //===----------------------------------------------------------------------===//
 
 /// 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,