diff options
author | Manman Ren <manman.ren@gmail.com> | 2013-08-28 21:20:28 +0000 |
---|---|---|
committer | Manman Ren <manman.ren@gmail.com> | 2013-08-28 21:20:28 +0000 |
commit | 1b45702454241da5f789d1ac29dd45f0d18373b0 (patch) | |
tree | a48cc4f610d625e6eadd5f97aa75aca53c377140 /clang/lib/CodeGen/CGDebugInfo.h | |
parent | 27c22edde44d1aa87458a88cb7f3e8a6ebc3739d (diff) | |
download | bcm5719-llvm-1b45702454241da5f789d1ac29dd45f0d18373b0.tar.gz bcm5719-llvm-1b45702454241da5f789d1ac29dd45f0d18373b0.zip |
Debug Info: update interface for CreateEnumType and getOrCreateRecordFwdDecl.
Both functions will take a Type pointer instead of a Decl pointer. This helps
with follow-up type uniquing patches, which need the Type pointer to call
CXX mangler to generate unique identifiers.
No functionality change.
llvm-svn: 189519
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.h')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.h b/clang/lib/CodeGen/CGDebugInfo.h index ac1a94c5449..a8ba14b8b3f 100644 --- a/clang/lib/CodeGen/CGDebugInfo.h +++ b/clang/lib/CodeGen/CGDebugInfo.h @@ -126,7 +126,7 @@ class CGDebugInfo { llvm::DIType CreateType(const RValueReferenceType *Ty, llvm::DIFile Unit); llvm::DIType CreateType(const MemberPointerType *Ty, llvm::DIFile F); llvm::DIType CreateType(const AtomicType *Ty, llvm::DIFile F); - llvm::DIType CreateEnumType(const EnumDecl *ED); + llvm::DIType CreateEnumType(const EnumType *Ty); llvm::DIType CreateSelfType(const QualType &QualTy, llvm::DIType Ty); llvm::DIType getTypeOrNull(const QualType); llvm::DIType getCompletedTypeOrNull(const QualType); @@ -309,7 +309,7 @@ private: llvm::DIScope getCurrentContextDescriptor(const Decl *Decl); /// \brief Create a forward decl for a RecordType in a given context. - llvm::DICompositeType getOrCreateRecordFwdDecl(const RecordDecl *, + llvm::DICompositeType getOrCreateRecordFwdDecl(const RecordType *, llvm::DIDescriptor); /// createContextChain - Create a set of decls for the context chain. |