diff options
author | Rui Ueyama <ruiu@google.com> | 2016-11-09 23:37:40 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2016-11-09 23:37:40 +0000 |
commit | 1bdaf3e30c222000eb18be744dc73c13f75f435a (patch) | |
tree | 7f8dfc6e2e38adaaf1249c5b4d457d18dc3d636a /lld/ELF/LinkerScript.cpp | |
parent | 38a666d6e545537674d8cb58bacea0f66b0d624a (diff) | |
download | bcm5719-llvm-1bdaf3e30c222000eb18be744dc73c13f75f435a.tar.gz bcm5719-llvm-1bdaf3e30c222000eb18be744dc73c13f75f435a.zip |
Remove an overloaded function to simplify.
This version of addRegular is almost identical to the other except
it lacked "size" parameter.
llvm-svn: 286416
Diffstat (limited to 'lld/ELF/LinkerScript.cpp')
-rw-r--r-- | lld/ELF/LinkerScript.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index e911fa5996d..3e6b8851e9d 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp @@ -64,8 +64,8 @@ ScriptConfiguration *elf::ScriptConfig; template <class ELFT> static void addRegular(SymbolAssignment *Cmd) { uint8_t Visibility = Cmd->Hidden ? STV_HIDDEN : STV_DEFAULT; - Symbol *Sym = Symtab<ELFT>::X->addRegular(Cmd->Name, Visibility, nullptr, - STB_GLOBAL, STT_NOTYPE, 0); + Symbol *Sym = Symtab<ELFT>::X->addRegular(Cmd->Name, Visibility, STT_NOTYPE, + 0, 0, STB_GLOBAL, nullptr); Cmd->Sym = Sym->body(); // If we have no SECTIONS then we don't have '.' and don't call |