summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/Binary.cpp
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@google.com>2016-11-30 16:49:11 +0000
committerDerek Schuff <dschuff@google.com>2016-11-30 16:49:11 +0000
commit2c6f75ddc51f486f17c07f6215bca0848d3d84fe (patch)
tree64c836a6a2a1bedaf6dba6fbca891a581b6c8a6b /llvm/lib/Object/Binary.cpp
parent288c088c177f0a9a994d37b3d7006c2c99f3df57 (diff)
downloadbcm5719-llvm-2c6f75ddc51f486f17c07f6215bca0848d3d84fe.tar.gz
bcm5719-llvm-2c6f75ddc51f486f17c07f6215bca0848d3d84fe.zip
[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
Diffstat (limited to 'llvm/lib/Object/Binary.cpp')
-rw-r--r--llvm/lib/Object/Binary.cpp1
1 files changed, 1 insertions, 0 deletions
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<std::unique_ptr<Binary>> 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);
OpenPOWER on IntegriCloud