mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-07 11:51:13 +00:00
Use StringRef in Datalayout API (NFC)
llvm-svn: 283009
This commit is contained in:
parent
970060f18d
commit
72c57fa04f
@ -261,7 +261,7 @@ public:
|
|||||||
|
|
||||||
bool hasLinkerPrivateGlobalPrefix() const { return ManglingMode == MM_MachO; }
|
bool hasLinkerPrivateGlobalPrefix() const { return ManglingMode == MM_MachO; }
|
||||||
|
|
||||||
const char *getLinkerPrivateGlobalPrefix() const {
|
StringRef getLinkerPrivateGlobalPrefix() const {
|
||||||
if (ManglingMode == MM_MachO)
|
if (ManglingMode == MM_MachO)
|
||||||
return "l";
|
return "l";
|
||||||
return "";
|
return "";
|
||||||
@ -281,7 +281,7 @@ public:
|
|||||||
llvm_unreachable("invalid mangling mode");
|
llvm_unreachable("invalid mangling mode");
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *getPrivateGlobalPrefix() const {
|
StringRef getPrivateGlobalPrefix() const {
|
||||||
switch (ManglingMode) {
|
switch (ManglingMode) {
|
||||||
case MM_None:
|
case MM_None:
|
||||||
return "";
|
return "";
|
||||||
|
@ -544,7 +544,7 @@ MCSymbol *MachineFunction::getJTISymbol(unsigned JTI, MCContext &Ctx,
|
|||||||
assert(JumpTableInfo && "No jump tables");
|
assert(JumpTableInfo && "No jump tables");
|
||||||
assert(JTI < JumpTableInfo->getJumpTables().size() && "Invalid JTI!");
|
assert(JTI < JumpTableInfo->getJumpTables().size() && "Invalid JTI!");
|
||||||
|
|
||||||
const char *Prefix = isLinkerPrivate ? DL.getLinkerPrivateGlobalPrefix()
|
StringRef Prefix = isLinkerPrivate ? DL.getLinkerPrivateGlobalPrefix()
|
||||||
: DL.getPrivateGlobalPrefix();
|
: DL.getPrivateGlobalPrefix();
|
||||||
SmallString<60> Name;
|
SmallString<60> Name;
|
||||||
raw_svector_ostream(Name)
|
raw_svector_ostream(Name)
|
||||||
|
@ -939,7 +939,7 @@ void ARMAsmPrinter::emitAttributes() {
|
|||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
static MCSymbol *getPICLabel(const char *Prefix, unsigned FunctionNumber,
|
static MCSymbol *getPICLabel(StringRef Prefix, unsigned FunctionNumber,
|
||||||
unsigned LabelId, MCContext &Ctx) {
|
unsigned LabelId, MCContext &Ctx) {
|
||||||
|
|
||||||
MCSymbol *Label = Ctx.getOrCreateSymbol(Twine(Prefix)
|
MCSymbol *Label = Ctx.getOrCreateSymbol(Twine(Prefix)
|
||||||
|
Loading…
Reference in New Issue
Block a user