[all-commits] [llvm/llvm-project] 2a6857: Enable finding bitcode in wasm objects

Sam Clegg via All-commits all-commits at lists.llvm.org
Wed Apr 15 12:33:56 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2a68573a3550faaad91c852c11a68c5f480a0aa6
      https://github.com/llvm/llvm-project/commit/2a68573a3550faaad91c852c11a68c5f480a0aa6
  Author: Sam Clegg <sbc at chromium.org>
  Date:   2020-04-15 (Wed, 15 Apr 2020)

  Changed paths:
    M llvm/include/llvm/Object/Wasm.h
    M llvm/lib/Object/IRObjectFile.cpp
    M llvm/lib/Object/WasmObjectFile.cpp

  Log Message:
  -----------
  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




More information about the All-commits mailing list