mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-29 00:21:14 +00:00
Move these vectors to the only function where they are used.
llvm-svn: 238477
This commit is contained in:
parent
8ebc973133
commit
cfbd35c9ad
@ -112,9 +112,6 @@ class ELFObjectWriter : public MCObjectWriter {
|
||||
/// @{
|
||||
|
||||
StringTableBuilder StrTabBuilder;
|
||||
std::vector<ELFSymbolData> LocalSymbolData;
|
||||
std::vector<ELFSymbolData> ExternalSymbolData;
|
||||
std::vector<ELFSymbolData> UndefinedSymbolData;
|
||||
|
||||
/// @}
|
||||
|
||||
@ -152,9 +149,6 @@ class ELFObjectWriter : public MCObjectWriter {
|
||||
Renames.clear();
|
||||
Relocations.clear();
|
||||
StrTabBuilder.clear();
|
||||
LocalSymbolData.clear();
|
||||
ExternalSymbolData.clear();
|
||||
UndefinedSymbolData.clear();
|
||||
SectionTable.clear();
|
||||
MCObjectWriter::reset();
|
||||
}
|
||||
@ -820,6 +814,10 @@ void ELFObjectWriter::computeSymbolTable(
|
||||
// The first entry is the undefined symbol entry.
|
||||
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.
|
||||
bool HasLargeSectionIndex = false;
|
||||
for (const MCSymbol &Symbol : Asm.symbols()) {
|
||||
|
Loading…
Reference in New Issue
Block a user