diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-02-02 00:39:32 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-02-02 00:39:32 +0000 |
commit | c8c24277a8cce39db95b0e05b79cbdf7e7558355 (patch) | |
tree | 2cb73f2c5cad4a25b4157c1a56f292c92ffd181c /lib/CodeGen/CGDebugInfo.cpp | |
parent | 9ceca75892202e1791fb002be6418c8720d74912 (diff) |
Revert r174246, accidentally committed.
This reverts commit 1513eb9284c23acfd19cf742b95996fbb11ca741.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174249 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 6d61c52af5..5e60bd8f66 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/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 |