summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-10-26 20:44:32 +0000
committerRui Ueyama <ruiu@google.com>2016-10-26 20:44:32 +0000
commit4c1cd45965702d4e2f89c1a4fb2023a5043728fc (patch)
tree15d9078549073705e30ee6172dc95057abff5b54
parent9bd85d22869e9db54e57031bc2101448943fd5ef (diff)
downloadbcm5719-llvm-4c1cd45965702d4e2f89c1a4fb2023a5043728fc.tar.gz
bcm5719-llvm-4c1cd45965702d4e2f89c1a4fb2023a5043728fc.zip
Remove a constructor to simplify.
llvm-svn: 285240
-rw-r--r--lld/ELF/Symbols.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/lld/ELF/Symbols.h b/lld/ELF/Symbols.h
index a0e48486f44..23c38d31d7c 100644
--- a/lld/ELF/Symbols.h
+++ b/lld/ELF/Symbols.h
@@ -194,19 +194,15 @@ public:
this->File = File;
}
- DefinedRegular(StringRef Name, uint8_t StOther, uint8_t Type, uintX_t Value,
- uintX_t Size, InputSectionBase<ELFT> *Section)
- : DefinedRegular(Name, StOther, Type, Value, Size, Section,
- Section ? Section->getFile() : nullptr) {}
-
DefinedRegular(StringRef Name, const Elf_Sym &Sym,
InputSectionBase<ELFT> *Section)
: DefinedRegular(Name, Sym.st_other, Sym.getType(), Sym.st_value,
- Sym.st_size, Section) {}
+ Sym.st_size, Section,
+ Section ? Section->getFile() : nullptr) {}
DefinedRegular(StringRef Name, uint8_t StOther)
: DefinedRegular(Name, StOther, llvm::ELF::STT_NOTYPE, 0, 0,
- NullInputSection) {}
+ NullInputSection, nullptr) {}
DefinedRegular(StringRef Name, uint8_t StOther, uint8_t Type, BitcodeFile *F)
: DefinedRegular(Name, StOther, Type, 0, 0, NullInputSection, F) {}
OpenPOWER on IntegriCloud