diff options
author | Manman Ren <manman.ren@gmail.com> | 2013-09-11 18:55:55 +0000 |
---|---|---|
committer | Manman Ren <manman.ren@gmail.com> | 2013-09-11 18:55:55 +0000 |
commit | dc293b3fe9e3cb7eb7ce7035b32218251a06fbfe (patch) | |
tree | 279dfd3d252c3d3067823a2ac4712b5312b31d69 /lib/IR/DebugInfo.cpp | |
parent | 55c06ae7afa3f862a6bb4a4441fe485c135f5b5e (diff) | |
download | llvm-dc293b3fe9e3cb7eb7ce7035b32218251a06fbfe.tar.gz llvm-dc293b3fe9e3cb7eb7ce7035b32218251a06fbfe.tar.bz2 llvm-dc293b3fe9e3cb7eb7ce7035b32218251a06fbfe.tar.xz |
Debug Info: move class definition of DIRef.
Definition of DIRef used to require the full definition of DIType because
of usage of DIType::isType in DIRef::resolve. We now use DIDescriptor::isType
instead to remove the requirement and move definition of DIRef before DIType.
With this, we can move the definition of DIType::getContext to the header
file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190540 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/DebugInfo.cpp')
-rw-r--r-- | lib/IR/DebugInfo.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/IR/DebugInfo.cpp b/lib/IR/DebugInfo.cpp index 87984a0975..e5a92ab15d 100644 --- a/lib/IR/DebugInfo.cpp +++ b/lib/IR/DebugInfo.cpp @@ -1452,7 +1452,3 @@ template <> DITypeRef DIDescriptor::getFieldAs<DITypeRef>(unsigned Elt) const { return DITypeRef(getField(DbgNode, Elt)); } - -DIScopeRef DIType::getContext() const { - return getFieldAs<DIScopeRef>(2); -} |