aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/JSBackend/Relooper.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-01-13 12:39:09 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-01-13 12:44:14 -0800
commita4b924c71acf88ca536d05c52280902abc598df8 (patch)
treeafc8172d4885f372a6c66a4bd77cf7c14e1392e6 /lib/Target/JSBackend/Relooper.h
parent6234b91b11f8dc997ce6c063376b85b82cc3a657 (diff)
update relooper
Diffstat (limited to 'lib/Target/JSBackend/Relooper.h')
-rw-r--r--lib/Target/JSBackend/Relooper.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Target/JSBackend/Relooper.h b/lib/Target/JSBackend/Relooper.h
index dfabcabbec..6b9394dbaa 100644
--- a/lib/Target/JSBackend/Relooper.h
+++ b/lib/Target/JSBackend/Relooper.h
@@ -200,11 +200,16 @@ struct Relooper {
void Render();
// Sets the global buffer all printing goes to. Must call this or MakeOutputBuffer.
+ // XXX: this is deprecated, see MakeOutputBuffer
static void SetOutputBuffer(char *Buffer, int Size);
- // Creates an output buffer. Must call this or SetOutputBuffer.
+ // Creates an internal output buffer. Must call this or SetOutputBuffer. Size is
+ // a hint for the initial size of the buffer, it can be resized later one demand.
+ // For that reason this is more recommended than SetOutputBuffer.
static void MakeOutputBuffer(int Size);
+ static char *GetOutputBuffer();
+
// Sets asm.js mode on or off (default is off)
static void SetAsmJSMode(int On);