diff options
author | Chris Lattner <sabre@nondot.org> | 2009-03-09 22:05:03 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-03-09 22:05:03 +0000 |
commit | 5b4725861e0bdd720d46d7c3cc574b782736264e (patch) | |
tree | 401683eef83aac9cfe50e60a685d7bc0d86f2b26 | |
parent | f12436891e531423697e2e91f9e218b16a3e1002 (diff) | |
download | bcm5719-llvm-5b4725861e0bdd720d46d7c3cc574b782736264e.tar.gz bcm5719-llvm-5b4725861e0bdd720d46d7c3cc574b782736264e.zip |
move -g option down into rest of codegen section
llvm-svn: 66480
-rw-r--r-- | clang/Driver/clang.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/clang/Driver/clang.cpp b/clang/Driver/clang.cpp index 7db892fc13c..59c3799023f 100644 --- a/clang/Driver/clang.cpp +++ b/clang/Driver/clang.cpp @@ -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. @@ -1142,6 +1135,10 @@ static void ParseFile(Preprocessor &PP, MinimalAction *PA) { //===----------------------------------------------------------------------===// 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 @@ 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, |