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/CGDebugInfo.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/CGDebugInfo.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 36fb22b1fef..81cc15ebc67 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -546,7 +546,7 @@ llvm::DIDescriptor CGDebugInfo::createContextChain(const Decl *Context) { /// then emit record's fwd if debug info size reduction is enabled. llvm::DIType CGDebugInfo::CreatePointeeType(QualType PointeeTy, llvm::DIFile Unit) { - if (!CGM.getCodeGenOpts().LimitDebugInfo) + if (CGM.getCodeGenOpts().DebugInfo != CodeGenOptions::LimitedDebugInfo) return getOrCreateType(PointeeTy, Unit); // Limit debug info for the pointee type. @@ -1823,7 +1823,7 @@ llvm::DIType CGDebugInfo::CreateLimitedType(const RecordType *Ty) { StringRef RDName = RD->getName(); llvm::DIDescriptor RDContext; - if (CGM.getCodeGenOpts().LimitDebugInfo) + if (CGM.getCodeGenOpts().DebugInfo == CodeGenOptions::LimitedDebugInfo) RDContext = createContextChain(cast<Decl>(RD->getDeclContext())); else RDContext = getContextDescriptor(cast<Decl>(RD->getDeclContext())); |

