diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2016-10-01 06:25:30 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2016-10-01 06:25:30 +0000 |
commit | 876fe65d272ea1fb270e1e2dc8ccda00d4006051 (patch) | |
tree | 37bb500b8b70c4c8863336c7886bebee18c7da97 /lib/Target/TargetMachineC.cpp | |
parent | d1fa61bdeef207a9080a49bb57d7cabb89eb9721 (diff) |
Use StringRef instead of raw pointer in TargetRegistry API (NFC)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283017 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetMachineC.cpp')
-rw-r--r-- | lib/Target/TargetMachineC.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/TargetMachineC.cpp b/lib/Target/TargetMachineC.cpp index 5fb5b022780..b20012fba32 100644 --- a/lib/Target/TargetMachineC.cpp +++ b/lib/Target/TargetMachineC.cpp @@ -81,11 +81,11 @@ LLVMBool LLVMGetTargetFromTriple(const char* TripleStr, LLVMTargetRef *T, } const char * LLVMGetTargetName(LLVMTargetRef T) { - return unwrap(T)->getName(); + return unwrap(T)->getName().data(); } const char * LLVMGetTargetDescription(LLVMTargetRef T) { - return unwrap(T)->getShortDescription(); + return unwrap(T)->getShortDescription().data(); } LLVMBool LLVMTargetHasJIT(LLVMTargetRef T) { |