aboutsummaryrefslogtreecommitdiffstats
path: root/lib/IR/DebugInfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/IR/DebugInfo.cpp')
-rw-r--r--lib/IR/DebugInfo.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/IR/DebugInfo.cpp b/lib/IR/DebugInfo.cpp
index 4546098..dc22db3 100644
--- a/lib/IR/DebugInfo.cpp
+++ b/lib/IR/DebugInfo.cpp
@@ -779,29 +779,6 @@ Value *DITemplateValueParameter::getValue() const {
return getField(DbgNode, 4);
}
-// If the current node has a parent scope then return that,
-// else return an empty scope.
-DIScope DIScope::getContext() const {
-
- if (isType())
- return DIType(DbgNode).getContext();
-
- if (isSubprogram())
- return DISubprogram(DbgNode).getContext();
-
- if (isLexicalBlock())
- return DILexicalBlock(DbgNode).getContext();
-
- if (isLexicalBlockFile())
- return DILexicalBlockFile(DbgNode).getContext();
-
- if (isNameSpace())
- return DINameSpace(DbgNode).getContext();
-
- assert((isFile() || isCompileUnit()) && "Unhandled type of scope.");
- return DIScope();
-}
-
StringRef DIScope::getFilename() const {
if (!DbgNode)
return StringRef();