Index: lld/wasm/OutputSections.h =================================================================== --- lld/wasm/OutputSections.h +++ lld/wasm/OutputSections.h @@ -31,8 +31,7 @@ class OutputSection { public: - OutputSection(uint32_t Type, std::string Name = "") - : Type(Type), Name(Name) {} + OutputSection(uint32_t Type, std::string Name) : Type(Type), Name(Name) {} virtual ~OutputSection() = default; std::string getSectionName() const; Index: lld/wasm/OutputSections.cpp =================================================================== --- lld/wasm/OutputSections.cpp +++ lld/wasm/OutputSections.cpp @@ -77,7 +77,7 @@ } CodeSection::CodeSection(ArrayRef Functions) - : OutputSection(WASM_SEC_CODE), Functions(Functions) { + : OutputSection(WASM_SEC_CODE, ""), Functions(Functions) { assert(Functions.size() > 0); raw_string_ostream OS(CodeSectionHeader); @@ -129,7 +129,7 @@ } DataSection::DataSection(ArrayRef Segments) - : OutputSection(WASM_SEC_DATA), Segments(Segments) { + : OutputSection(WASM_SEC_DATA, ""), Segments(Segments) { raw_string_ostream OS(DataSectionHeader); writeUleb128(OS, Segments.size(), "data segment count");