[PATCH] D43727: [WebAssembly] Do not use default arguments for SymbolTable.
Rui Ueyama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 27 16:42:11 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rLLD326282: [WebAssembly] Do not use default arguments for SymbolTable. (authored by ruiu, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D43727?vs=135784&id=136190#toc
Repository:
rLLD LLVM Linker
https://reviews.llvm.org/D43727
Files:
wasm/Driver.cpp
wasm/SymbolTable.h
Index: wasm/Driver.cpp
===================================================================
--- wasm/Driver.cpp
+++ wasm/Driver.cpp
@@ -300,10 +300,10 @@
"__wasm_call_ctors", &NullSignature, WASM_SYMBOL_VISIBILITY_HIDDEN);
WasmSym::StackPointer = Symtab->addSyntheticGlobal(
"__stack_pointer", WASM_SYMBOL_VISIBILITY_HIDDEN, StackPointer);
- WasmSym::HeapBase = Symtab->addSyntheticDataSymbol("__heap_base");
+ WasmSym::HeapBase = Symtab->addSyntheticDataSymbol("__heap_base", 0);
WasmSym::DsoHandle = Symtab->addSyntheticDataSymbol(
"__dso_handle", WASM_SYMBOL_VISIBILITY_HIDDEN);
- WasmSym::DataEnd = Symtab->addSyntheticDataSymbol("__data_end");
+ WasmSym::DataEnd = Symtab->addSyntheticDataSymbol("__data_end", 0);
if (!Config->Entry.empty())
EntrySym = Symtab->addUndefinedFunction(Config->Entry, 0, nullptr,
Index: wasm/SymbolTable.h
===================================================================
--- wasm/SymbolTable.h
+++ wasm/SymbolTable.h
@@ -49,10 +49,10 @@
ObjFile *findComdat(StringRef Name) const;
Symbol *addDefinedFunction(StringRef Name, uint32_t Flags, InputFile *File,
- InputFunction *Function = nullptr);
+ InputFunction *Function);
Symbol *addDefinedData(StringRef Name, uint32_t Flags, InputFile *File,
- InputSegment *Segment = nullptr, uint32_t Address = 0,
- uint32_t Size = 0);
+ InputSegment *Segment, uint32_t Address,
+ uint32_t Size);
Symbol *addDefinedGlobal(StringRef Name, uint32_t Flags, InputFile *File,
InputGlobal *G);
@@ -65,12 +65,12 @@
void addLazy(ArchiveFile *F, const Archive::Symbol *Sym);
bool addComdat(StringRef Name, ObjFile *);
- DefinedData *addSyntheticDataSymbol(StringRef Name, uint32_t Flags = 0);
+ DefinedData *addSyntheticDataSymbol(StringRef Name, uint32_t Flags);
DefinedGlobal *addSyntheticGlobal(StringRef Name, uint32_t Flags,
InputGlobal *Global);
DefinedFunction *addSyntheticFunction(StringRef Name,
const WasmSignature *Type,
- uint32_t Flags = 0);
+ uint32_t Flags);
private:
std::pair<Symbol *, bool> insert(StringRef Name);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43727.136190.patch
Type: text/x-patch
Size: 2435 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180228/0e5369ce/attachment.bin>
More information about the llvm-commits
mailing list