This reverts commit r283009. Bots are broken.
llvm-svn: 283011
bool hasLinkerPrivateGlobalPrefix() const { return ManglingMode == MM_MachO; }
- StringRef getLinkerPrivateGlobalPrefix() const {
+ const char *getLinkerPrivateGlobalPrefix() const {
if (ManglingMode == MM_MachO)
return "l";
return "";
llvm_unreachable("invalid mangling mode");
}
- StringRef getPrivateGlobalPrefix() const {
+ const char *getPrivateGlobalPrefix() const {
switch (ManglingMode) {
case MM_None:
return "";
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)
//===----------------------------------------------------------------------===//
-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)