mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Fix invalid uses of Twine. Hopefully this fixes the problem that Takumi is
having. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132898 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ffd0ae64c4
commit
fb66f477a1
@ -189,8 +189,8 @@ TargetLoweringObjectFileELF::getCFIPersonalitySymbol(const GlobalValue *GV,
|
||||
return Mang->getSymbol(GV);
|
||||
break;
|
||||
case dwarf::DW_EH_PE_pcrel: {
|
||||
Twine FullName = StringRef("DW.ref.") + Mang->getSymbol(GV)->getName();
|
||||
return getContext().GetOrCreateSymbol(FullName);
|
||||
return getContext().GetOrCreateSymbol(StringRef("DW.ref.") +
|
||||
Mang->getSymbol(GV)->getName());
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -199,13 +199,13 @@ TargetLoweringObjectFileELF::getCFIPersonalitySymbol(const GlobalValue *GV,
|
||||
void TargetLoweringObjectFileELF::emitPersonalityValue(MCStreamer &Streamer,
|
||||
const TargetMachine &TM,
|
||||
const MCSymbol *Sym) const {
|
||||
Twine FullName = StringRef("DW.ref.") + Sym->getName();
|
||||
MCSymbol *Label = getContext().GetOrCreateSymbol(FullName);
|
||||
SmallString<64> NameData("DW.ref.");
|
||||
NameData += Sym->getName();
|
||||
MCSymbol *Label = getContext().GetOrCreateSymbol(NameData);
|
||||
Streamer.EmitSymbolAttribute(Label, MCSA_Hidden);
|
||||
Streamer.EmitSymbolAttribute(Label, MCSA_Weak);
|
||||
Twine SectionName = StringRef(".data.") + Label->getName();
|
||||
SmallString<64> NameData;
|
||||
SectionName.toVector(NameData);
|
||||
StringRef Prefix = ".data.";
|
||||
NameData.insert(NameData.begin(), Prefix.begin(), Prefix.end());
|
||||
unsigned Flags = ELF::SHF_ALLOC | ELF::SHF_WRITE | ELF::SHF_GROUP;
|
||||
const MCSection *Sec = getContext().getELFSection(NameData,
|
||||
ELF::SHT_PROGBITS,
|
||||
|
Loading…
Reference in New Issue
Block a user