mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-05 09:24:28 +00:00
Move these vectors to the only function where they are used.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238477 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -112,9 +112,6 @@ class ELFObjectWriter : public MCObjectWriter {
|
|||||||
/// @{
|
/// @{
|
||||||
|
|
||||||
StringTableBuilder StrTabBuilder;
|
StringTableBuilder StrTabBuilder;
|
||||||
std::vector<ELFSymbolData> LocalSymbolData;
|
|
||||||
std::vector<ELFSymbolData> ExternalSymbolData;
|
|
||||||
std::vector<ELFSymbolData> UndefinedSymbolData;
|
|
||||||
|
|
||||||
/// @}
|
/// @}
|
||||||
|
|
||||||
@ -152,9 +149,6 @@ class ELFObjectWriter : public MCObjectWriter {
|
|||||||
Renames.clear();
|
Renames.clear();
|
||||||
Relocations.clear();
|
Relocations.clear();
|
||||||
StrTabBuilder.clear();
|
StrTabBuilder.clear();
|
||||||
LocalSymbolData.clear();
|
|
||||||
ExternalSymbolData.clear();
|
|
||||||
UndefinedSymbolData.clear();
|
|
||||||
SectionTable.clear();
|
SectionTable.clear();
|
||||||
MCObjectWriter::reset();
|
MCObjectWriter::reset();
|
||||||
}
|
}
|
||||||
@ -820,6 +814,10 @@ void ELFObjectWriter::computeSymbolTable(
|
|||||||
// The first entry is the undefined symbol entry.
|
// The first entry is the undefined symbol entry.
|
||||||
Writer.writeSymbol(0, 0, 0, 0, 0, 0, false);
|
Writer.writeSymbol(0, 0, 0, 0, 0, 0, false);
|
||||||
|
|
||||||
|
std::vector<ELFSymbolData> LocalSymbolData;
|
||||||
|
std::vector<ELFSymbolData> ExternalSymbolData;
|
||||||
|
std::vector<ELFSymbolData> UndefinedSymbolData;
|
||||||
|
|
||||||
// Add the data for the symbols.
|
// Add the data for the symbols.
|
||||||
bool HasLargeSectionIndex = false;
|
bool HasLargeSectionIndex = false;
|
||||||
for (const MCSymbol &Symbol : Asm.symbols()) {
|
for (const MCSymbol &Symbol : Asm.symbols()) {
|
||||||
|
Reference in New Issue
Block a user