IR: Change GenericDwarfNode::getHeader() to StringRef
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Thu, 22 Jan 2015 23:10:55 +0000 (23:10 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Thu, 22 Jan 2015 23:10:55 +0000 (23:10 +0000)
commita791aea5ae6910dc24a12edc565cd434b1fc1f0d
tree6fd622ff6578cb5ca3ca9343388bc2f4540d150f
parentcee1699e9f7abb18ce90bd9f2e56bfa2266fecca
IR: Change GenericDwarfNode::getHeader() to StringRef

Simplify the API to use a `StringRef` directly rather than exposing the
`MDString` bits underneath.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226876 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Metadata.h
lib/IR/LLVMContextImpl.h
lib/IR/Metadata.cpp
unittests/IR/MetadataTest.cpp