diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-01-22 23:10:55 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-01-22 23:10:55 +0000 |
commit | 68ab023ef75c38c59024d322c9d81dbd7ea9e475 (patch) | |
tree | e6a908b077f376bf90339a606be04d2490aea2cd /llvm/lib/IR/LLVMContextImpl.h | |
parent | 999500a26dfb1285bb9ea4dc489f49f7809d09d9 (diff) | |
download | bcm5719-llvm-68ab023ef75c38c59024d322c9d81dbd7ea9e475.tar.gz bcm5719-llvm-68ab023ef75c38c59024d322c9d81dbd7ea9e475.zip |
IR: Change GenericDwarfNode::getHeader() to StringRef
Simplify the API to use a `StringRef` directly rather than exposing the
`MDString` bits underneath.
llvm-svn: 226876
Diffstat (limited to 'llvm/lib/IR/LLVMContextImpl.h')
-rw-r--r-- | llvm/lib/IR/LLVMContextImpl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/LLVMContextImpl.h b/llvm/lib/IR/LLVMContextImpl.h index a009262f80e..12b150741dd 100644 --- a/llvm/lib/IR/LLVMContextImpl.h +++ b/llvm/lib/IR/LLVMContextImpl.h @@ -288,8 +288,8 @@ struct MDLocationInfo { struct GenericDebugNodeInfo { struct KeyTy : MDNodeOpsKey { unsigned Tag; - MDString *Header; - KeyTy(unsigned Tag, MDString *Header, ArrayRef<Metadata *> DwarfOps) + StringRef Header; + KeyTy(unsigned Tag, StringRef Header, ArrayRef<Metadata *> DwarfOps) : MDNodeOpsKey(DwarfOps), Tag(Tag), Header(Header) {} KeyTy(GenericDebugNode *N) : MDNodeOpsKey(N, 1), Tag(N->getTag()), Header(N->getHeader()) {} |