summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2016-10-01 05:12:48 +0000
committerMehdi Amini <mehdi.amini@apple.com>2016-10-01 05:12:48 +0000
commit217b2464849f038a583b31252664161798a95003 (patch)
tree30bc943cbd010b3aff2f3f5a929e7522ed0249ca /llvm/lib/CodeGen/MachineFunction.cpp
parent56f0497bb869338dc1e4868b634f98be83ace483 (diff)
downloadbcm5719-llvm-217b2464849f038a583b31252664161798a95003.tar.gz
bcm5719-llvm-217b2464849f038a583b31252664161798a95003.zip
Revert "Use StringRef in Datalayout API (NFC)"
This reverts commit r283009. Bots are broken. llvm-svn: 283011
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp
index 7190fbd5642..dd306b8af78 100644
--- a/llvm/lib/CodeGen/MachineFunction.cpp
+++ b/llvm/lib/CodeGen/MachineFunction.cpp
@@ -544,7 +544,7 @@ MCSymbol *MachineFunction::getJTISymbol(unsigned JTI, MCContext &Ctx,
assert(JumpTableInfo && "No jump tables");
assert(JTI < JumpTableInfo->getJumpTables().size() && "Invalid JTI!");
- StringRef Prefix = isLinkerPrivate ? DL.getLinkerPrivateGlobalPrefix()
+ const char *Prefix = isLinkerPrivate ? DL.getLinkerPrivateGlobalPrefix()
: DL.getPrivateGlobalPrefix();
SmallString<60> Name;
raw_svector_ostream(Name)
OpenPOWER on IntegriCloud