summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/DebugInfo.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-04-11 00:39:43 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-04-11 00:39:43 +0000
commit50c065bc7d84a73cdd63a39d811ee8eb392f4712 (patch)
tree2a99e82a86ed9aca6f8accc4de77c03ef385ec11 /llvm/lib/IR/DebugInfo.cpp
parentffb460fdf08a5e4c85c82d34e683e85ab0102784 (diff)
downloadbcm5719-llvm-50c065bc7d84a73cdd63a39d811ee8eb392f4712.tar.gz
bcm5719-llvm-50c065bc7d84a73cdd63a39d811ee8eb392f4712.zip
DebugInfo: Add forwarding getFilename() accessor to new hierarchy
Add forwarding `getFilename()` and `getDirectory()` accessors to nodes in the new hierarchy that define a `getFile()`. Use that to re-implement existing functionality in the `DIDescriptor` hierarchy. llvm-svn: 234671
Diffstat (limited to 'llvm/lib/IR/DebugInfo.cpp')
-rw-r--r--llvm/lib/IR/DebugInfo.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp
index 70a67225685..4b1c1f7bbd1 100644
--- a/llvm/lib/IR/DebugInfo.cpp
+++ b/llvm/lib/IR/DebugInfo.cpp
@@ -143,20 +143,6 @@ StringRef DIScope::getName() const {
return StringRef();
}
-StringRef DIScope::getFilename() const {
- if (auto *N = get())
- if (auto *F = N->getFile())
- return F->getFilename();
- return "";
-}
-
-StringRef DIScope::getDirectory() const {
- if (auto *N = get())
- if (auto *F = N->getFile())
- return F->getDirectory();
- return "";
-}
-
void DICompileUnit::replaceSubprograms(DIArray Subprograms) {
get()->replaceSubprograms(MDSubprogramArray(Subprograms));
}
OpenPOWER on IntegriCloud