[lld] r233739 - Use C++ non-static member initialization.
Rui Ueyama
ruiu at google.com
Tue Mar 31 12:37:34 PDT 2015
Author: ruiu
Date: Tue Mar 31 14:37:33 2015
New Revision: 233739
URL: http://llvm.org/viewvc/llvm-project?rev=233739&view=rev
Log:
Use C++ non-static member initialization.
Modified:
lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.cpp
Modified: lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.cpp?rev=233739&r1=233738&r2=233739&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.cpp (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.cpp Tue Mar 31 14:37:33 2015
@@ -163,8 +163,7 @@ protected:
}
public:
- GOTPLTPass(const ELFLinkingContext &ctx)
- : _file(ctx), _null(nullptr), _plt0(nullptr), _got0(nullptr) {}
+ GOTPLTPass(const ELFLinkingContext &ctx) : _file(ctx) {}
/// \brief Do the pass.
///
@@ -219,13 +218,13 @@ protected:
std::vector<PLTAtom *> _pltVector;
/// \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;
+ PLT0Atom *_plt0 = nullptr;
+ GOTAtom *_got0 = nullptr;
/// @}
};
More information about the llvm-commits
mailing list