diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-03-22 17:33:20 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-03-22 17:33:20 +0000 |
commit | 4b52a88e90b341ff2a3d1dbad6eb5ea731228156 (patch) | |
tree | 91feee1ed09f514e3a7f6583ca72f2f28086f250 /lib/IR/DebugInfo.cpp | |
parent | be67aa52a8fca4ea33dd59512d8bea9e2a45be2e (diff) |
Refactor out the DIFile parameter to DILexicalBlock to refer to the raw file/directory pair
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177742 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/DebugInfo.cpp')
-rw-r--r-- | lib/IR/DebugInfo.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/IR/DebugInfo.cpp b/lib/IR/DebugInfo.cpp index 91968d8fbf..990233404e 100644 --- a/lib/IR/DebugInfo.cpp +++ b/lib/IR/DebugInfo.cpp @@ -666,8 +666,6 @@ StringRef DIScope::getFilename() const { return StringRef(); if (isLexicalBlockFile()) return DILexicalBlockFile(DbgNode).getFilename(); - if (isLexicalBlock()) - return DILexicalBlock(DbgNode).getFilename(); return ::getStringField(getNodeField(DbgNode, 1), 0); } @@ -676,8 +674,6 @@ StringRef DIScope::getDirectory() const { return StringRef(); if (isLexicalBlockFile()) return DILexicalBlockFile(DbgNode).getDirectory(); - if (isLexicalBlock()) - return DILexicalBlock(DbgNode).getDirectory(); return ::getStringField(getNodeField(DbgNode, 1), 1); } |