diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2016-10-01 05:57:55 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2016-10-01 05:57:55 +0000 |
commit | 48878ae579ada982eb35053cfe8d1c68c8e51c56 (patch) | |
tree | e3567634fe670b1b09ad341368d5600c30cd7e0f /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | f42ec7903f9fc4794a09bab49f4ada4159dedf5b (diff) | |
download | bcm5719-llvm-48878ae579ada982eb35053cfe8d1c68c8e51c56.tar.gz bcm5719-llvm-48878ae579ada982eb35053cfe8d1c68c8e51c56.zip |
Use StringRef in Datalayout API (NFC)
llvm-svn: 283013
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index dd306b8af78..5fb8be7fb68 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -544,8 +544,8 @@ MCSymbol *MachineFunction::getJTISymbol(unsigned JTI, MCContext &Ctx, assert(JumpTableInfo && "No jump tables"); assert(JTI < JumpTableInfo->getJumpTables().size() && "Invalid JTI!"); - const char *Prefix = isLinkerPrivate ? DL.getLinkerPrivateGlobalPrefix() - : DL.getPrivateGlobalPrefix(); + StringRef Prefix = isLinkerPrivate ? DL.getLinkerPrivateGlobalPrefix() + : DL.getPrivateGlobalPrefix(); SmallString<60> Name; raw_svector_ostream(Name) << Prefix << "JTI" << getFunctionNumber() << '_' << JTI; |