diff options
author | Devang Patel <dpatel@apple.com> | 2010-09-30 19:05:55 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-09-30 19:05:55 +0000 |
commit | 91bbb5547dd9c50cc120e093de66a4e316e899af (patch) | |
tree | 1d6028777a723ca396dd50e36399b1474dda2e64 /clang/lib/CodeGen/CGDebugInfo.h | |
parent | f7edb1c8137c7499ac02f562372d57db0ad004dc (diff) | |
download | bcm5719-llvm-91bbb5547dd9c50cc120e093de66a4e316e899af.tar.gz bcm5719-llvm-91bbb5547dd9c50cc120e093de66a4e316e899af.zip |
Introduce -flimit-debug-info.
In this experimental mode try avoiding debug info emission for classes as much as possible. The goal is to reduce size of produced debuginfo without reducing quality of debug info in general. This is a work in progress.
llvm-svn: 115188
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.h')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.h b/clang/lib/CodeGen/CGDebugInfo.h index a1ad012353e..6df9a2fcb75 100644 --- a/clang/lib/CodeGen/CGDebugInfo.h +++ b/clang/lib/CodeGen/CGDebugInfo.h @@ -98,7 +98,7 @@ class CGDebugInfo { llvm::DIType getOrCreateVTablePtrType(llvm::DIFile F); llvm::DINameSpace getOrCreateNameSpace(const NamespaceDecl *N, llvm::DIDescriptor Unit); - + llvm::DIType CreatePointeeType(QualType PointeeTy, llvm::DIFile F); llvm::DIType CreatePointerLikeType(unsigned Tag, const Type *Ty, QualType PointeeTy, llvm::DIFile F); @@ -189,6 +189,8 @@ public: void EmitGlobalVariable(const ValueDecl *VD, llvm::ConstantInt *Init, CGBuilderTy &Builder); + /// getOrCreateRecordType - Emit record type's standalone debug info. + llvm::DIType getOrCreateRecordType(QualType Ty, SourceLocation L); private: /// EmitDeclare - Emit call to llvm.dbg.declare for a variable declaration. void EmitDeclare(const VarDecl *decl, unsigned Tag, llvm::Value *AI, |