mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 18:24:23 +00:00
Convert the easy cases of GetTempSymbol to createTempSymbol.
In these cases no code was depending on GetTempSymbol finding an existing symbol. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232478 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1575,7 +1575,7 @@ void AsmPrinter::EmitLabelDifference(const MCSymbol *Hi, const MCSymbol *Lo,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Otherwise, emit with .set (aka assignment).
|
// Otherwise, emit with .set (aka assignment).
|
||||||
MCSymbol *SetLabel = GetTempSymbol("set", SetCounter++);
|
MCSymbol *SetLabel = createTempSymbol("set", SetCounter++);
|
||||||
OutStreamer.EmitAssignment(SetLabel, Diff);
|
OutStreamer.EmitAssignment(SetLabel, Diff);
|
||||||
OutStreamer.EmitSymbolValue(SetLabel, Size);
|
OutStreamer.EmitSymbolValue(SetLabel, Size);
|
||||||
}
|
}
|
||||||
|
@ -96,7 +96,7 @@ void DwarfAccelTable::FinalizeTable(AsmPrinter *Asm, StringRef Prefix) {
|
|||||||
for (size_t i = 0, e = Data.size(); i < e; ++i) {
|
for (size_t i = 0, e = Data.size(); i < e; ++i) {
|
||||||
uint32_t bucket = Data[i]->HashValue % Header.bucket_count;
|
uint32_t bucket = Data[i]->HashValue % Header.bucket_count;
|
||||||
Buckets[bucket].push_back(Data[i]);
|
Buckets[bucket].push_back(Data[i]);
|
||||||
Data[i]->Sym = Asm->GetTempSymbol(Prefix, i);
|
Data[i]->Sym = Asm->createTempSymbol(Prefix, i);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sort the contents of the buckets by hash value so that hash
|
// Sort the contents of the buckets by hash value so that hash
|
||||||
|
@ -380,7 +380,7 @@ void DwarfCompileUnit::addScopeRangeList(DIE &ScopeDIE,
|
|||||||
TLOF.getDwarfRangesSection()->getBeginSymbol();
|
TLOF.getDwarfRangesSection()->getBeginSymbol();
|
||||||
|
|
||||||
RangeSpanList List(
|
RangeSpanList List(
|
||||||
Asm->GetTempSymbol("debug_ranges", DD->getNextRangeNumber()),
|
Asm->createTempSymbol("debug_ranges", DD->getNextRangeNumber()),
|
||||||
std::move(Range));
|
std::move(Range));
|
||||||
|
|
||||||
// Under fission, ranges are specified by constant offsets relative to the
|
// Under fission, ranges are specified by constant offsets relative to the
|
||||||
|
@ -927,7 +927,7 @@ DwarfDebug::collectVariableInfo(DwarfCompileUnit &TheCU, DISubprogram SP,
|
|||||||
DebugLocList &LocList = DotDebugLocEntries.back();
|
DebugLocList &LocList = DotDebugLocEntries.back();
|
||||||
LocList.CU = &TheCU;
|
LocList.CU = &TheCU;
|
||||||
LocList.Label =
|
LocList.Label =
|
||||||
Asm->GetTempSymbol("debug_loc", DotDebugLocEntries.size() - 1);
|
Asm->createTempSymbol("debug_loc", DotDebugLocEntries.size() - 1);
|
||||||
|
|
||||||
// Build the location list for this variable.
|
// Build the location list for this variable.
|
||||||
buildLocationList(LocList.List, Ranges);
|
buildLocationList(LocList.List, Ranges);
|
||||||
@ -1669,7 +1669,7 @@ void DwarfDebug::emitDebugARanges() {
|
|||||||
// if we know the section name up-front. For user-created sections, the
|
// if we know the section name up-front. For user-created sections, the
|
||||||
// resulting label may not be valid to use as a label. (section names can
|
// resulting label may not be valid to use as a label. (section names can
|
||||||
// use a greater set of characters on some systems)
|
// use a greater set of characters on some systems)
|
||||||
Sym = Asm->GetTempSymbol("debug_end", ID);
|
Sym = Asm->createTempSymbol("debug_end", ID);
|
||||||
Asm->OutStreamer.SwitchSection(Section);
|
Asm->OutStreamer.SwitchSection(Section);
|
||||||
Asm->OutStreamer.EmitLabel(Sym);
|
Asm->OutStreamer.EmitLabel(Sym);
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ getEntry(AsmPrinter &Asm,
|
|||||||
std::pair<MCSymbol *, unsigned> &Entry = Pool[Str];
|
std::pair<MCSymbol *, unsigned> &Entry = Pool[Str];
|
||||||
if (!Entry.first) {
|
if (!Entry.first) {
|
||||||
Entry.second = Pool.size() - 1;
|
Entry.second = Pool.size() - 1;
|
||||||
Entry.first = Asm.GetTempSymbol(Prefix, Entry.second);
|
Entry.first = Asm.createTempSymbol(Prefix, Entry.second);
|
||||||
}
|
}
|
||||||
return Entry;
|
return Entry;
|
||||||
}
|
}
|
||||||
|
@ -464,7 +464,7 @@ void AArch64AsmPrinter::EmitInstruction(const MachineInstr *MI) {
|
|||||||
|
|
||||||
if (AArch64FI->getLOHRelated().count(MI)) {
|
if (AArch64FI->getLOHRelated().count(MI)) {
|
||||||
// Generate a label for LOH related instruction
|
// Generate a label for LOH related instruction
|
||||||
MCSymbol *LOHLabel = GetTempSymbol("loh", LOHLabelCounter++);
|
MCSymbol *LOHLabel = createTempSymbol("loh", LOHLabelCounter++);
|
||||||
// Associate the instruction with the label
|
// Associate the instruction with the label
|
||||||
LOHInstToLabel[MI] = LOHLabel;
|
LOHInstToLabel[MI] = LOHLabel;
|
||||||
OutStreamer.EmitLabel(LOHLabel);
|
OutStreamer.EmitLabel(LOHLabel);
|
||||||
|
Reference in New Issue
Block a user