summaryrefslogtreecommitdiff
path: root/src/binary-reader-objdump.h
diff options
context:
space:
mode:
authorBen Smith <binjimin@gmail.com>2017-02-17 16:32:20 -0800
committerGitHub <noreply@github.com>2017-02-17 16:32:20 -0800
commit28a34066f1f17b0ce7070835a695f621bdfe59ea (patch)
tree3396db9aad083b616981f2980953afd1b654be85 /src/binary-reader-objdump.h
parent6463c765207e37e55af1c6a06ff06071af131c07 (diff)
downloadwabt-28a34066f1f17b0ce7070835a695f621bdfe59ea.tar.gz
wabt-28a34066f1f17b0ce7070835a695f621bdfe59ea.tar.bz2
wabt-28a34066f1f17b0ce7070835a695f621bdfe59ea.zip
Remove WabtAllocator (#307)
It complicates the code everywhere. It's faster to use a stack allocator, but not worth the trouble for maintainability.
Diffstat (limited to 'src/binary-reader-objdump.h')
-rw-r--r--src/binary-reader-objdump.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/binary-reader-objdump.h b/src/binary-reader-objdump.h
index 3e029fcd..f0b55e6a 100644
--- a/src/binary-reader-objdump.h
+++ b/src/binary-reader-objdump.h
@@ -21,7 +21,6 @@
#include "stream.h"
#include "vector.h"
-struct WabtAllocator;
struct WabtModule;
struct WabtReadBinaryOptions;
@@ -58,8 +57,7 @@ typedef struct WabtObjdumpOptions {
WABT_EXTERN_C_BEGIN
-WabtResult wabt_read_binary_objdump(struct WabtAllocator* allocator,
- const uint8_t* data,
+WabtResult wabt_read_binary_objdump(const uint8_t* data,
size_t size,
WabtObjdumpOptions* options);