summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/ELF/ARM/ARMRelocationPass.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/ARM/ARMRelocationPass.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/ARM/ARMRelocationPass.cpp')
-rw-r--r--lld/lib/ReaderWriter/ELF/ARM/ARMRelocationPass.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lld/lib/ReaderWriter/ELF/ARM/ARMRelocationPass.cpp b/lld/lib/ReaderWriter/ELF/ARM/ARMRelocationPass.cpp
index c1b5e73dc87..86b3ec30390 100644
--- a/lld/lib/ReaderWriter/ELF/ARM/ARMRelocationPass.cpp
+++ b/lld/lib/ReaderWriter/ELF/ARM/ARMRelocationPass.cpp
@@ -346,8 +346,7 @@ protected:
}
public:
- ARMRelocationPass(const ELFLinkingContext &ctx)
- : _file(ctx), _ctx(ctx), _null(nullptr) {}
+ ARMRelocationPass(const ELFLinkingContext &ctx) : _file(ctx), _ctx(ctx) {}
/// \brief Do the pass.
///
@@ -433,7 +432,7 @@ protected:
std::vector<VeneerAtom *> _veneerVector;
/// \brief GOT entry that is always 0. Used for undefined weaks.
- GOTAtom *_null;
+ GOTAtom *_null = nullptr;
};
/// This implements the static relocation model. Meaning GOT and PLT entries are
OpenPOWER on IntegriCloud