summaryrefslogtreecommitdiffstats
path: root/lld/ELF/Writer.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2016-04-15 14:41:56 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2016-04-15 14:41:56 +0000
commit38c67a27fe811074d39aaba6d4e9fbcc8f0640fc (patch)
tree70cf11ae2fcfa208cdd4e7e397ced9dd04b4d348 /lld/ELF/Writer.cpp
parent917fc9d7cb401f2de332738e4929e053f305e468 (diff)
downloadbcm5719-llvm-38c67a27fe811074d39aaba6d4e9fbcc8f0640fc.tar.gz
bcm5719-llvm-38c67a27fe811074d39aaba6d4e9fbcc8f0640fc.zip
Store a Symbol for EntrySym.
This makes it impossible to forget to call repl on the SymbolBody. llvm-svn: 266432
Diffstat (limited to 'lld/ELF/Writer.cpp')
-rw-r--r--lld/ELF/Writer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index c942b5d856e..ee1d32bc1b6 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -1634,8 +1634,8 @@ static uint32_t getMipsEFlags() {
}
template <class ELFT> static typename ELFT::uint getEntryAddr() {
- if (SymbolBody *B = Config->EntrySym)
- return B->repl().getVA<ELFT>();
+ if (Symbol *S = Config->EntrySym)
+ return S->Body->getVA<ELFT>();
if (Config->EntryAddr != uint64_t(-1))
return Config->EntryAddr;
return 0;
OpenPOWER on IntegriCloud