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 | fa7b0b87673a4696c938a6b154cc3c3d58ac4ad2 (patch) | |
tree | 0dcfc946c069102c21d24a9fc0061b3afab8e322 /llvm/lib | |
parent | 34fea36340da2cbfbbb4fab3d5b86745eef93c46 (diff) | |
download | bcm5719-llvm-fa7b0b87673a4696c938a6b154cc3c3d58ac4ad2.tar.gz bcm5719-llvm-fa7b0b87673a4696c938a6b154cc3c3d58ac4ad2.zip |
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.
llvm-svn: 190540
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/IR/DebugInfo.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp index 87984a09759..e5a92ab15d9 100644 --- a/llvm/lib/IR/DebugInfo.cpp +++ b/llvm/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); -} |