diff options
author | Sam Clegg <sbc@chromium.org> | 2020-04-15 11:35:35 -0700 |
---|---|---|
committer | Sam Clegg <sbc@chromium.org> | 2020-04-15 12:33:33 -0700 |
commit | 2a68573a3550faaad91c852c11a68c5f480a0aa6 (patch) | |
tree | 06fbc734643f9dcb8e297597e6ebba15238cf0a2 /llvm/lib/Object/WasmObjectFile.cpp | |
parent | 5f87415efc1e57587272944a5f9b6745e4474660 (diff) | |
download | llvm-2a68573a3550faaad91c852c11a68c5f480a0aa6.zip llvm-2a68573a3550faaad91c852c11a68c5f480a0aa6.tar.gz llvm-2a68573a3550faaad91c852c11a68c5f480a0aa6.tar.bz2 |
Enable finding bitcode in wasm objects
This commit fixes using functions in `IRObjectFile` to load bitcode from
wasm objects by recognizing the file magic for wasm and also inheriting
the default implementation of classifying sections as bitcode.
Patch By: alexcrichton
Differential Revision: https://reviews.llvm.org/D78199
Diffstat (limited to 'llvm/lib/Object/WasmObjectFile.cpp')
-rw-r--r-- | llvm/lib/Object/WasmObjectFile.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Object/WasmObjectFile.cpp b/llvm/lib/Object/WasmObjectFile.cpp index e9a8e08..362834c 100644 --- a/llvm/lib/Object/WasmObjectFile.cpp +++ b/llvm/lib/Object/WasmObjectFile.cpp @@ -1469,8 +1469,6 @@ bool WasmObjectFile::isSectionBSS(DataRefImpl Sec) const { return false; } bool WasmObjectFile::isSectionVirtual(DataRefImpl Sec) const { return false; } -bool WasmObjectFile::isSectionBitcode(DataRefImpl Sec) const { return false; } - relocation_iterator WasmObjectFile::section_rel_begin(DataRefImpl Ref) const { DataRefImpl RelocRef; RelocRef.d.a = Ref.d.a; |