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)
commit68ab023ef75c38c59024d322c9d81dbd7ea9e475
treee6a908b077f376bf90339a606be04d2490aea2cd
parent999500a26dfb1285bb9ea4dc489f49f7809d09d9
IR: Change GenericDwarfNode::getHeader() to StringRef

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

llvm-svn: 226876
llvm/include/llvm/IR/Metadata.h
llvm/lib/IR/LLVMContextImpl.h
llvm/lib/IR/Metadata.cpp
llvm/unittests/IR/MetadataTest.cpp