DebugInfo: Add forwarding getFilename() accessor to new hierarchy
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 11 Apr 2015 00:39:43 +0000 (00:39 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 11 Apr 2015 00:39:43 +0000 (00:39 +0000)
commit5fc3fbd3ca71c91607047cf456b63fcca02274fb
treed77d4c85aafc9f651f4d0c327bca71cb7ba0e3dd
parentff49ef7838c32d96a9dcfe6cfdf0787023094823
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234671 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DebugInfo.h
include/llvm/IR/DebugInfoMetadata.h
lib/IR/DebugInfo.cpp