From 8bad86c81be924bdfe1814da69dafda8b0237503 Mon Sep 17 00:00:00 2001 From: Manman Ren Date: Mon, 8 Jul 2013 21:55:46 +0000 Subject: DebugInfo: remove unused helper function getDICompositeType. llvm-svn: 185876 --- llvm/lib/IR/DebugInfo.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'llvm/lib/IR/DebugInfo.cpp') diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp index 25d4ea4fc2a..c55d68fdc74 100644 --- a/llvm/lib/IR/DebugInfo.cpp +++ b/llvm/lib/IR/DebugInfo.cpp @@ -844,17 +844,6 @@ DISubprogram llvm::getDISubprogram(const MDNode *Scope) { return DISubprogram(); } -/// getDICompositeType - Find underlying composite type. -DICompositeType llvm::getDICompositeType(DIType T) { - if (T.isCompositeType()) - return DICompositeType(T); - - if (T.isDerivedType()) - return getDICompositeType(DIDerivedType(T).getTypeDerivedFrom()); - - return DICompositeType(); -} - /// isSubprogramContext - Return true if Context is either a subprogram /// or another context nested inside a subprogram. bool llvm::isSubprogramContext(const MDNode *Context) { -- cgit v1.2.3