summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/DebugInfo.cpp
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2013-09-11 18:55:55 +0000
committerManman Ren <manman.ren@gmail.com>2013-09-11 18:55:55 +0000
commitfa7b0b87673a4696c938a6b154cc3c3d58ac4ad2 (patch)
tree0dcfc946c069102c21d24a9fc0061b3afab8e322 /llvm/lib/IR/DebugInfo.cpp
parent34fea36340da2cbfbbb4fab3d5b86745eef93c46 (diff)
downloadbcm5719-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/IR/DebugInfo.cpp')
-rw-r--r--llvm/lib/IR/DebugInfo.cpp4
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);
-}
OpenPOWER on IntegriCloud