static_assert(llvm::AlignOf<T>::Alignment <=
llvm::AlignOf<decltype(S->Body)>::Alignment,
"Body not aligned enough");
- static_assert(static_cast<SymbolBody *>(static_cast<T *>(nullptr)) == nullptr,
- "Not a SymbolBody");
+ assert(static_cast<SymbolBody *>(static_cast<T *>(nullptr)) == nullptr &&
+ "Not a SymbolBody");
new (S->Body.buffer) T(std::forward<ArgT>(Arg)...);
}
auto Define = [&](StringRef Start, StringRef End,
OutputSectionBase<ELFT> *OS) {
if (OS) {
- Symtab.addSynthetic(Start, *OS, 0);
- Symtab.addSynthetic(End, *OS, DefinedSynthetic<ELFT>::SectionEnd);
+ this->Symtab.addSynthetic(Start, *OS, 0);
+ this->Symtab.addSynthetic(End, *OS, DefinedSynthetic<ELFT>::SectionEnd);
} else {
- Symtab.addIgnored(Start);
- Symtab.addIgnored(End);
+ this->Symtab.addIgnored(Start);
+ this->Symtab.addIgnored(End);
}
};