diff options
author | Devang Patel <dpatel@apple.com> | 2010-12-08 22:42:58 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-12-08 22:42:58 +0000 |
commit | 823d8e96cf3ff11775b8beb7f4d817a578972dc4 (patch) | |
tree | 35b811a1f4120772b231b37ac3d5741a515682db /lib/CodeGen/CGDebugInfo.h | |
parent | db3d4d036037f379f12643e067b229862d61e932 (diff) |
Start using DIBuilder. It provides cleaner interface.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121302 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.h')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/CodeGen/CGDebugInfo.h b/lib/CodeGen/CGDebugInfo.h index bcbe67fe74..104349e085 100644 --- a/lib/CodeGen/CGDebugInfo.h +++ b/lib/CodeGen/CGDebugInfo.h @@ -19,6 +19,7 @@ #include "clang/Basic/SourceLocation.h" #include "llvm/ADT/DenseMap.h" #include "llvm/Analysis/DebugInfo.h" +#include "llvm/Analysis/DIBuilder.h" #include "llvm/Support/ValueHandle.h" #include "llvm/Support/Allocator.h" @@ -42,7 +43,7 @@ namespace CodeGen { /// the backend. class CGDebugInfo { CodeGenModule &CGM; - llvm::DIFactory DebugFactory; + llvm::DIBuilder DBuilder; llvm::DICompileUnit TheCU; SourceLocation CurLoc, PrevLoc; llvm::DIType VTablePtrType; @@ -109,26 +110,26 @@ class CGDebugInfo { void CollectCXXMemberFunctions(const CXXRecordDecl *Decl, llvm::DIFile F, - llvm::SmallVectorImpl<llvm::DIDescriptor> &E, + llvm::SmallVectorImpl<llvm::Value *> &E, llvm::DIType T); void CollectCXXFriends(const CXXRecordDecl *Decl, llvm::DIFile F, - llvm::SmallVectorImpl<llvm::DIDescriptor> &EltTys, + llvm::SmallVectorImpl<llvm::Value *> &EltTys, llvm::DIType RecordTy); void CollectCXXBases(const CXXRecordDecl *Decl, llvm::DIFile F, - llvm::SmallVectorImpl<llvm::DIDescriptor> &EltTys, + llvm::SmallVectorImpl<llvm::Value *> &EltTys, llvm::DIType RecordTy); void CollectRecordFields(const RecordDecl *Decl, llvm::DIFile F, - llvm::SmallVectorImpl<llvm::DIDescriptor> &E); + llvm::SmallVectorImpl<llvm::Value *> &E); void CollectVTableInfo(const CXXRecordDecl *Decl, llvm::DIFile F, - llvm::SmallVectorImpl<llvm::DIDescriptor> &EltTys); + llvm::SmallVectorImpl<llvm::Value *> &EltTys); public: CGDebugInfo(CodeGenModule &CGM); |