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 | 486e1fe954af7025991da17169d852bf3ed58852 (patch) | |
| tree | 1e8a1a6e9766c3a624ebd421f590d0146d9b47a4 /clang/lib/CodeGen/CodeGenModule.cpp | |
| parent | e57b49ee165d7d86cf5fa83be1190483d56e12a9 (diff) | |
| download | bcm5719-llvm-486e1fe954af7025991da17169d852bf3ed58852.tar.gz bcm5719-llvm-486e1fe954af7025991da17169d852bf3ed58852.zip | |
Use enum to set debug info size generated by Clang
llvm-svn: 155697
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 0b1ddc15be0..85f404d5107 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/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); |

