Use StringRef instead of raw pointers in MCAsmInfo/MCInstrInfo APIs (NFC)
llvm-svn: 283018
This commit is contained in:
@@ -51,7 +51,7 @@ MCSymbol *MachineBasicBlock::getSymbol() const {
|
||||
if (!CachedMCSymbol) {
|
||||
const MachineFunction *MF = getParent();
|
||||
MCContext &Ctx = MF->getContext();
|
||||
const char *Prefix = Ctx.getAsmInfo()->getPrivateLabelPrefix();
|
||||
auto Prefix = Ctx.getAsmInfo()->getPrivateLabelPrefix();
|
||||
assert(getNumber() >= 0 && "cannot get label for unreachable MBB");
|
||||
CachedMCSymbol = Ctx.getOrCreateSymbol(Twine(Prefix) + "BB" +
|
||||
Twine(MF->getFunctionNumber()) +
|
||||
|
||||
Reference in New Issue
Block a user