summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2015-03-31 19:37:33 +0000
committerRui Ueyama <ruiu@google.com>2015-03-31 19:37:33 +0000
commit73ee010d2d3fcab682b5c8657800b86c297ec5c8 (patch)
tree8688e1863836d8d84381a3b97ade50c6b1f2f0a5
parent1f0cd04df978585304367a8e1cdc7364e493f7c0 (diff)
downloadbcm5719-llvm-73ee010d2d3fcab682b5c8657800b86c297ec5c8.tar.gz
bcm5719-llvm-73ee010d2d3fcab682b5c8657800b86c297ec5c8.zip
Use C++ non-static member initialization.
llvm-svn: 233739
-rw-r--r--lld/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/lld/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.cpp b/lld/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.cpp
index 0dfaa6d1fc0..9cf9413c30e 100644
--- a/lld/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.cpp
+++ b/lld/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.cpp
@@ -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;
/// @}
};
OpenPOWER on IntegriCloud