summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-02-02 00:39:32 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-02-02 00:39:32 +0000
commitb7d1e1ff57bfebe306bd54368a2b62a9a0e168b3 (patch)
tree3abe1dbef5cad46f91a4d85815d2e9ec8fa6b217 /clang/lib/CodeGen/CGDebugInfo.cpp
parentcbf40d22bf98fb0d30b2c6a9e8a69aa601de2a1a (diff)
downloadbcm5719-llvm-b7d1e1ff57bfebe306bd54368a2b62a9a0e168b3.tar.gz
bcm5719-llvm-b7d1e1ff57bfebe306bd54368a2b62a9a0e168b3.zip
Revert r174246, accidentally committed.
This reverts commit 1513eb9284c23acfd19cf742b95996fbb11ca741. llvm-svn: 174249
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 6d61c52af5f..5e60bd8f66c 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -111,9 +111,6 @@ llvm::DIDescriptor CGDebugInfo::getContextDescriptor(const Decl *Context) {
return llvm::DIDescriptor(Ty);
}
}
-
- if (!LexicalBlockStack.empty())
- return llvm::DIDescriptor(LexicalBlockStack.back());
return TheCU;
}
@@ -2825,12 +2822,6 @@ void CGDebugInfo::EmitGlobalVariable(const ValueDecl *VD,
getStaticDataMemberDeclaration(VD));
}
-void CGDebugInfo::EmitUsingDirectiveDecl(const UsingDirectiveDecl &UD) {
- SourceLocation Loc = UD.getNamespaceKeyLocation();
- llvm::DIFile Unit = getOrCreateFile(Loc);
- DBuilder.createUsingDirective(getContextDescriptor(&UD), Unit, getLineNumber(Loc), getOrCreateNameSpace(UD.getNominatedNamespace()));
-}
-
/// getOrCreateNamesSpace - Return namespace descriptor for the given
/// namespace decl.
llvm::DINameSpace
OpenPOWER on IntegriCloud