[lld] r233723 - If x is a unique_ptr, *x.get() is equivalent to *x.
Rui Ueyama
ruiu at google.com
Tue Mar 31 11:26:32 PDT 2015
Author: ruiu
Date: Tue Mar 31 13:26:31 2015
New Revision: 233723
URL: http://llvm.org/viewvc/llvm-project?rev=233723&view=rev
Log:
If x is a unique_ptr, *x.get() is equivalent to *x.
Modified:
lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.cpp
lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.h
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=233723&r1=233722&r2=233723&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.cpp (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.cpp Tue Mar 31 13:26:31 2015
@@ -23,7 +23,7 @@ HexagonTargetHandler::HexagonTargetHandl
_hexagonRuntimeFile(new HexagonRuntimeFile<HexagonELFType>(ctx)),
_hexagonTargetLayout(new HexagonTargetLayout<HexagonELFType>(ctx)),
_hexagonRelocationHandler(
- new HexagonTargetRelocationHandler(*_hexagonTargetLayout.get())) {}
+ new HexagonTargetRelocationHandler(*_hexagonTargetLayout)) {}
std::unique_ptr<Writer> HexagonTargetHandler::getWriter() {
switch (_ctx.getOutputELFType()) {
Modified: lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.h?rev=233723&r1=233722&r2=233723&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.h Tue Mar 31 13:26:31 2015
@@ -110,11 +110,11 @@ public:
void registerRelocationNames(Registry ®istry) override;
const HexagonTargetRelocationHandler &getRelocationHandler() const override {
- return *(_hexagonRelocationHandler.get());
+ return *_hexagonRelocationHandler;
}
HexagonTargetLayout<HexagonELFType> &getTargetLayout() override {
- return *(_hexagonTargetLayout.get());
+ return *_hexagonTargetLayout;
}
std::unique_ptr<Reader> getObjReader() override {
More information about the llvm-commits
mailing list