[llvm] r283011 - Revert "Use StringRef in Datalayout API (NFC)"
Mehdi Amini via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 30 22:12:49 PDT 2016
Author: mehdi_amini
Date: Sat Oct 1 00:12:48 2016
New Revision: 283011
URL: http://llvm.org/viewvc/llvm-project?rev=283011&view=rev
Log:
Revert "Use StringRef in Datalayout API (NFC)"
This reverts commit r283009. Bots are broken.
Modified:
llvm/trunk/include/llvm/IR/DataLayout.h
llvm/trunk/lib/CodeGen/MachineFunction.cpp
llvm/trunk/lib/Target/ARM/ARMAsmPrinter.cpp
Modified: llvm/trunk/include/llvm/IR/DataLayout.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/DataLayout.h?rev=283011&r1=283010&r2=283011&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/DataLayout.h (original)
+++ llvm/trunk/include/llvm/IR/DataLayout.h Sat Oct 1 00:12:48 2016
@@ -261,7 +261,7 @@ public:
bool hasLinkerPrivateGlobalPrefix() const { return ManglingMode == MM_MachO; }
- StringRef getLinkerPrivateGlobalPrefix() const {
+ const char *getLinkerPrivateGlobalPrefix() const {
if (ManglingMode == MM_MachO)
return "l";
return "";
@@ -281,7 +281,7 @@ public:
llvm_unreachable("invalid mangling mode");
}
- StringRef getPrivateGlobalPrefix() const {
+ const char *getPrivateGlobalPrefix() const {
switch (ManglingMode) {
case MM_None:
return "";
Modified: llvm/trunk/lib/CodeGen/MachineFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineFunction.cpp?rev=283011&r1=283010&r2=283011&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineFunction.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineFunction.cpp Sat Oct 1 00:12:48 2016
@@ -544,7 +544,7 @@ MCSymbol *MachineFunction::getJTISymbol(
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)
Modified: llvm/trunk/lib/Target/ARM/ARMAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMAsmPrinter.cpp?rev=283011&r1=283010&r2=283011&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMAsmPrinter.cpp Sat Oct 1 00:12:48 2016
@@ -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)
More information about the llvm-commits
mailing list