summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManman Ren <mren@apple.com>2013-07-08 21:55:46 +0000
committerManman Ren <mren@apple.com>2013-07-08 21:55:46 +0000
commit6cf7246ecaf058733fdf8fa47896907204839f68 (patch)
tree242188a1d4a52f0939a1abf6667e39669f4c0670
parent01e4509972509e59874612d7d04419cdaeccc0ef (diff)
downloadllvm-6cf7246ecaf058733fdf8fa47896907204839f68.tar.gz
llvm-6cf7246ecaf058733fdf8fa47896907204839f68.tar.bz2
llvm-6cf7246ecaf058733fdf8fa47896907204839f68.tar.xz
DebugInfo: remove unused helper function getDICompositeType.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185876 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/DebugInfo.h3
-rw-r--r--lib/IR/DebugInfo.cpp11
2 files changed, 0 insertions, 14 deletions
diff --git a/include/llvm/DebugInfo.h b/include/llvm/DebugInfo.h
index 372d367b70..dd03bf70d2 100644
--- a/include/llvm/DebugInfo.h
+++ b/include/llvm/DebugInfo.h
@@ -695,9 +695,6 @@ namespace llvm {
/// getDISubprogram - Find subprogram that is enclosing this scope.
DISubprogram getDISubprogram(const MDNode *Scope);
- /// getDICompositeType - Find underlying composite type.
- DICompositeType getDICompositeType(DIType T);
-
/// isSubprogramContext - Return true if Context is either a subprogram
/// or another context nested inside a subprogram.
bool isSubprogramContext(const MDNode *Context);
diff --git a/lib/IR/DebugInfo.cpp b/lib/IR/DebugInfo.cpp
index 25d4ea4fc2..c55d68fdc7 100644
--- a/lib/IR/DebugInfo.cpp
+++ b/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) {