diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-05-24 21:33:22 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-05-24 21:33:22 +0000 |
commit | 4583bea0b22d321df535e5d7911c82ecd894ac56 (patch) | |
tree | 3f47a575989d44da8f325a6c414e69d523db758f /clang/lib/CodeGen/CGDebugInfo.h | |
parent | 22c460a0511c98431ae58a501a944cb27965228a (diff) | |
download | bcm5719-llvm-4583bea0b22d321df535e5d7911c82ecd894ac56.tar.gz bcm5719-llvm-4583bea0b22d321df535e5d7911c82ecd894ac56.zip |
DebugInfo: Rename CreatePointerType to getOrCreateTypeDeclaration
To make this more consistent with 'getOrCreateType' & clarify the
distinction between the two. The only thing I couldn't quite communicate
in the name is that getOrCreateTypeDeclaration may actually produce a
full definition (in -fno-limit-debug-info) but the point is to call it
whenever only a declaration is needed & the implementation can choose
whether to provide a declaration or definition.
(also, unfortunately, getOrCreateType can produce declarations too - we
should sure this up by making it not do that - any caller that can
tolerate a declaration should be calling getOrCreateTypeDeclaration
instead)
llvm-svn: 182674
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.h')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.h b/clang/lib/CodeGen/CGDebugInfo.h index 3f3d95745a3..cee96f6d9df 100644 --- a/clang/lib/CodeGen/CGDebugInfo.h +++ b/clang/lib/CodeGen/CGDebugInfo.h @@ -137,7 +137,7 @@ class CGDebugInfo { llvm::DIFile F); llvm::DIType getOrCreateVTablePtrType(llvm::DIFile F); llvm::DINameSpace getOrCreateNameSpace(const NamespaceDecl *N); - llvm::DIType CreatePointeeType(QualType PointeeTy, llvm::DIFile F); + llvm::DIType getOrCreateTypeDeclaration(QualType PointeeTy, llvm::DIFile F); llvm::DIType CreatePointerLikeType(unsigned Tag, const Type *Ty, QualType PointeeTy, llvm::DIFile F); |