summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/ELF/AArch64/AArch64RelocationPass.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2015-04-01 22:28:00 +0000
committerRui Ueyama <ruiu@google.com>2015-04-01 22:28:00 +0000
commit0d83d6129771f48cccc17cc2b5389b5359dbf30c (patch)
tree6544970d55e7c3d87b9de653fd8348f9a05fbef3 /lld/lib/ReaderWriter/ELF/AArch64/AArch64RelocationPass.cpp
parentbc0217396e619e2b162f79a4ba406db9536d0d5c (diff)
downloadbcm5719-llvm-0d83d6129771f48cccc17cc2b5389b5359dbf30c.tar.gz
bcm5719-llvm-0d83d6129771f48cccc17cc2b5389b5359dbf30c.zip
Use C++ non-static member initialization.
llvm-svn: 233859
Diffstat (limited to 'lld/lib/ReaderWriter/ELF/AArch64/AArch64RelocationPass.cpp')
-rw-r--r--lld/lib/ReaderWriter/ELF/AArch64/AArch64RelocationPass.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/lld/lib/ReaderWriter/ELF/AArch64/AArch64RelocationPass.cpp b/lld/lib/ReaderWriter/ELF/AArch64/AArch64RelocationPass.cpp
index eadeeb43848..2f0735f2ac7 100644
--- a/lld/lib/ReaderWriter/ELF/AArch64/AArch64RelocationPass.cpp
+++ b/lld/lib/ReaderWriter/ELF/AArch64/AArch64RelocationPass.cpp
@@ -244,9 +244,7 @@ protected:
}
public:
- AArch64RelocationPass(const ELFLinkingContext &ctx)
- : _file(ctx), _ctx(ctx), _null(nullptr), _plt0(nullptr), _got0(nullptr),
- _got1(nullptr) {}
+ AArch64RelocationPass(const ELFLinkingContext &ctx) : _file(ctx), _ctx(ctx) {}
/// \brief Do the pass.
///
@@ -337,14 +335,14 @@ protected:
std::vector<ObjectAtom *> _objectVector;
/// \brief GOT entry that is always 0. Used for undefined weaks.
- GOTAtom *_null;
+ GOTAtom *_null = nullptr;
/// \brief The got and plt entries for .PLT0. This is used to call into the
/// dynamic linker for symbol resolution.
/// @{
- PLT0Atom *_plt0;
- GOTAtom *_got0;
- GOTAtom *_got1;
+ PLT0Atom *_plt0 = nullptr;
+ GOTAtom *_got0 = nullptr;
+ GOTAtom *_got1 = nullptr;
/// @}
};
OpenPOWER on IntegriCloud