diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2016-10-01 05:12:48 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2016-10-01 05:12:48 +0000 |
commit | 217b2464849f038a583b31252664161798a95003 (patch) | |
tree | 30bc943cbd010b3aff2f3f5a929e7522ed0249ca /llvm/lib | |
parent | 56f0497bb869338dc1e4868b634f98be83ace483 (diff) | |
download | bcm5719-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')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Target/ARM/ARMAsmPrinter.cpp | 2 |
2 files changed, 2 insertions, 2 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) diff --git a/llvm/lib/Target/ARM/ARMAsmPrinter.cpp b/llvm/lib/Target/ARM/ARMAsmPrinter.cpp index b73225ef1e8..27d2c4b356d 100644 --- a/llvm/lib/Target/ARM/ARMAsmPrinter.cpp +++ b/llvm/lib/Target/ARM/ARMAsmPrinter.cpp @@ -939,7 +939,7 @@ void ARMAsmPrinter::emitAttributes() { //===----------------------------------------------------------------------===// -static MCSymbol *getPICLabel(StringRef Prefix, unsigned FunctionNumber, +static MCSymbol *getPICLabel(const char *Prefix, unsigned FunctionNumber, unsigned LabelId, MCContext &Ctx) { MCSymbol *Label = Ctx.getOrCreateSymbol(Twine(Prefix) |