[PATCH] D57719: [WebAssembly] Object: Remove redundant method. NFC.
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 5 08:30:30 PST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL353183: [WebAssembly] Object: Remove redundant method. NFC. (authored by sbc, committed by ).
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D57719/new/
https://reviews.llvm.org/D57719
Files:
llvm/trunk/include/llvm/Object/Wasm.h
llvm/trunk/lib/Object/WasmObjectFile.cpp
Index: llvm/trunk/lib/Object/WasmObjectFile.cpp
===================================================================
--- llvm/trunk/lib/Object/WasmObjectFile.cpp
+++ llvm/trunk/lib/Object/WasmObjectFile.cpp
@@ -255,7 +255,7 @@
}
ReadContext Ctx;
- Ctx.Start = getPtr(0);
+ Ctx.Start = reinterpret_cast<const uint8_t *>(getData().data());
Ctx.Ptr = Ctx.Start + 4;
Ctx.End = Ctx.Start + getData().size();
@@ -1173,10 +1173,6 @@
return Error::success();
}
-const uint8_t *WasmObjectFile::getPtr(size_t Offset) const {
- return reinterpret_cast<const uint8_t *>(getData().data() + Offset);
-}
-
const wasm::WasmObjectHeader &WasmObjectFile::getHeader() const {
return Header;
}
Index: llvm/trunk/include/llvm/Object/Wasm.h
===================================================================
--- llvm/trunk/include/llvm/Object/Wasm.h
+++ llvm/trunk/include/llvm/Object/Wasm.h
@@ -228,7 +228,6 @@
const WasmSection &getWasmSection(DataRefImpl Ref) const;
const wasm::WasmRelocation &getWasmRelocation(DataRefImpl Ref) const;
- const uint8_t *getPtr(size_t Offset) const;
Error parseSection(WasmSection &Sec);
Error parseCustomSection(WasmSection &Sec, ReadContext &Ctx);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57719.185319.patch
Type: text/x-patch
Size: 1211 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190205/d34f8988/attachment.bin>
More information about the llvm-commits
mailing list