]> granicus.if.org Git - clang/commit
DebugInfo: Rename CreatePointerType to getOrCreateTypeDeclaration
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 24 May 2013 21:33:22 +0000 (21:33 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 24 May 2013 21:33:22 +0000 (21:33 +0000)
commitb0f77b065761670921fdf9c56029856cb5d9c306
treefd7e5c1d3052ec76f50d6a89c70a9a428a32e0a8
parent912964863c344dd84976ee281bd213d0485645ba
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)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182674 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDebugInfo.cpp
lib/CodeGen/CGDebugInfo.h