diff options
author | Chris Lattner <sabre@nondot.org> | 2009-03-09 22:00:34 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-03-09 22:00:34 +0000 |
commit | 20126046221404b81cdd8de192bd72fdc7b0a670 (patch) | |
tree | 4f9d238a25fe399d9f1ad6d8b3bcf0880f08691d /Driver/clang.cpp | |
parent | 2a83a8ce486e6d6bd543d42d2b67606181f44472 (diff) |
move debug info generation flag into CompileOptions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66478 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/clang.cpp')
-rw-r--r-- | Driver/clang.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Driver/clang.cpp b/Driver/clang.cpp index adfc8602fd..7db892fc13 100644 --- a/Driver/clang.cpp +++ b/Driver/clang.cpp @@ -1167,6 +1167,7 @@ TargetCPU("mcpu", static void InitializeCompileOptions(CompileOptions &Opts) { Opts.OptimizeSize = OptSize; + Opts.DebugInfo = GenerateDebugInfo; if (OptSize) { // -Os implies -O2 // FIXME: Diagnose conflicting options. @@ -1246,7 +1247,7 @@ static ASTConsumer *CreateASTConsumer(const std::string& InFile, CompileOptions Opts; InitializeCompileOptions(Opts); return CreateBackendConsumer(Act, Diag, LangOpts, Opts, - InFile, OutputFile, GenerateDebugInfo); + InFile, OutputFile); } case SerializeAST: |