| commit | f7ae359d2c8ab309a1556a4365c52fab26281e3c | [log] [tgz] |
|---|---|---|
| author | Rafael Espindola <rafael.espindola@gmail.com> | Tue Feb 23 18:53:29 2016 +0000 |
| committer | Rafael Espindola <rafael.espindola@gmail.com> | Tue Feb 23 18:53:29 2016 +0000 |
| tree | 6e2b180c2fefd7deec1c4fbdcb004a33a94df8f2 | |
| parent | 75baf09be5a4e9d8223fa18e1d28f130ba5460de [diff] [blame] |
Simplify. NFC. llvm-svn: 261668
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index 52741b1..ab844d3 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp
@@ -335,7 +335,7 @@ if (auto *B = dyn_cast_or_null<SharedSymbol<ELFT>>(Body)) { if (B->needsCopy()) continue; - if (Target->needsCopyRel(Type, *B)) { + if (Target->needsCopyRel<ELFT>(Type, *B)) { B->NeedsCopyOrPltAddr = true; Out<ELFT>::RelaDyn->addReloc( {Target->CopyRel, DynamicReloc<ELFT>::Off_Bss, B});