aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/llc/llc.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp
index 1d7295c303..bdc14fc554 100644
--- a/tools/llc/llc.cpp
+++ b/tools/llc/llc.cpp
@@ -504,6 +504,7 @@ static int compileModule(char **argv, LLVMContext &Context) {
#if defined __native_client__ && defined(NACL_SRPC)
{
raw_fd_ostream ROS(GetObjectFileFD(), true);
+ ROS.SetBufferSize(1 << 20);
formatted_raw_ostream FOS(ROS);
// Ask the target to add backend passes as necessary.
if (Target.addPassesToEmitFile(*PM, FOS, FileType, NoVerify)) {