mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-23 20:45:06 +00:00
Add missing ELFObjectWriter::reset() override, like other MC classes.
See detailed discussion at http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20140915/235418.html and r217907, r217948: http://llvm.org/viewvc/llvm-project?view=revision&revision=217907 http://llvm.org/viewvc/llvm-project?view=revision&revision=217948 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232982 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ebe8742dd9
commit
8b9cc2da07
@ -190,6 +190,20 @@ class ELFObjectWriter : public MCObjectWriter {
|
||||
: MCObjectWriter(OS, IsLittleEndian), FWriter(IsLittleEndian),
|
||||
TargetObjectWriter(MOTW), NeedsGOT(false) {}
|
||||
|
||||
void reset() override {
|
||||
UsedInReloc.clear();
|
||||
WeakrefUsedInReloc.clear();
|
||||
Renames.clear();
|
||||
Relocations.clear();
|
||||
ShStrTabBuilder.clear();
|
||||
StrTabBuilder.clear();
|
||||
FileSymbolData.clear();
|
||||
LocalSymbolData.clear();
|
||||
ExternalSymbolData.clear();
|
||||
UndefinedSymbolData.clear();
|
||||
MCObjectWriter::reset();
|
||||
}
|
||||
|
||||
virtual ~ELFObjectWriter();
|
||||
|
||||
void WriteWord(uint64_t W) {
|
||||
|
Loading…
Reference in New Issue
Block a user