mirror of
https://github.com/rui314/mold.git
synced 2024-11-15 04:10:40 +03:00
temporary
This commit is contained in:
parent
1ea84efaa9
commit
9b9b7d2a62
1
mold.h
1
mold.h
@ -303,6 +303,7 @@ public:
|
||||
: name(name) {
|
||||
hdr.sh_flags = flags;
|
||||
hdr.sh_type = type;
|
||||
all_instances.push_back(this);
|
||||
}
|
||||
|
||||
void copy_to(uint8_t *buf) override {
|
||||
|
@ -74,8 +74,5 @@ OutputSection *OutputSection::get_instance(InputSection *isec) {
|
||||
std::unique_lock unique_lock(mu);
|
||||
if (OutputSection *osec = find())
|
||||
return osec;
|
||||
|
||||
OutputSection *osec = new OutputSection(iname, iflags, isec->hdr->sh_type);
|
||||
OutputSection::all_instances.push_back(osec);
|
||||
return osec;
|
||||
return new OutputSection(iname, iflags, isec->hdr->sh_type);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user