diff options
author | Alexey Samsonov <samsonov@google.com> | 2012-04-27 07:24:20 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2012-04-27 07:24:20 +0000 |
commit | 3a70cd6e1cc414856e41ce5509aa61c89bf472dc (patch) | |
tree | 0da206d1543c71379d1af4a232aa0057b79318f3 /lib/CodeGen/CodeGenModule.cpp | |
parent | 577f14a34457032523e59dbbbacb88ca2cd4db57 (diff) |
Use enum to set debug info size generated by Clang
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155697 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenModule.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index 0b1ddc15be..85f404d510 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -110,7 +110,8 @@ CodeGenModule::CodeGenModule(ASTContext &C, const CodeGenOptions &CGO, // If debug info or coverage generation is enabled, create the CGDebugInfo // object. - if (CodeGenOpts.DebugInfo || CodeGenOpts.EmitGcovArcs || + if (CodeGenOpts.DebugInfo != CodeGenOptions::NoDebugInfo || + CodeGenOpts.EmitGcovArcs || CodeGenOpts.EmitGcovNotes) DebugInfo = new CGDebugInfo(*this); |