From 2c6f75ddc51f486f17c07f6215bca0848d3d84fe Mon Sep 17 00:00:00 2001 From: Derek Schuff Date: Wed, 30 Nov 2016 16:49:11 +0000 Subject: [WebAssembly] Add llvm-objdump support for wasm file format This is the first part of an effort to add wasm binary support across all llvm tools. Patch by Sam Clegg Differential Revision: https://reviews.llvm.org/D26172 llvm-svn: 288251 --- llvm/lib/Object/Binary.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/lib/Object/Binary.cpp') diff --git a/llvm/lib/Object/Binary.cpp b/llvm/lib/Object/Binary.cpp index 2d2192d2a14..8467d349cd9 100644 --- a/llvm/lib/Object/Binary.cpp +++ b/llvm/lib/Object/Binary.cpp @@ -63,6 +63,7 @@ Expected> object::createBinary(MemoryBufferRef Buffer, case sys::fs::file_magic::coff_import_library: case sys::fs::file_magic::pecoff_executable: case sys::fs::file_magic::bitcode: + case sys::fs::file_magic::wasm_object: return ObjectFile::createSymbolicFile(Buffer, Type, Context); case sys::fs::file_magic::macho_universal_binary: return MachOUniversalBinary::create(Buffer); -- cgit v1.2.3