From fa7b0b87673a4696c938a6b154cc3c3d58ac4ad2 Mon Sep 17 00:00:00 2001 From: Manman Ren Date: Wed, 11 Sep 2013 18:55:55 +0000 Subject: 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 --- llvm/lib/IR/DebugInfo.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'llvm/lib/IR/DebugInfo.cpp') 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(unsigned Elt) const { return DITypeRef(getField(DbgNode, Elt)); } - -DIScopeRef DIType::getContext() const { - return getFieldAs(2); -} -- cgit v1.2.3