We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8269f37 commit 06e0d17Copy full SHA for 06e0d17
lld/wasm/Writer.cpp
@@ -694,8 +694,9 @@ void Writer::assignSymtab() {
694
for (Symbol *Sym : File->getSymbols()) {
695
if (Sym->getFile() != File)
696
continue;
697
- if (!Sym->isLive())
698
- return;
+ // (Since this is relocatable output, GC is not performed so symbols must
+ // be live.)
699
+ assert(Sym->isLive());
700
Sym->setOutputSymbolIndex(SymbolIndex++);
701
SymtabEntries.emplace_back(Sym);
702
}
@@ -850,7 +851,6 @@ static const int OPCODE_END = 0xb;
850
851
// in input object.
852
void Writer::createCtorFunction() {
853
uint32_t FunctionIndex = NumImportedFunctions + InputFunctions.size();
- WasmSym::CallCtors->setOutputIndex(FunctionIndex);
854
855
// First write the body's contents to a string.
856
std::string BodyContent;
0 commit comments