diff options
author | Jan Voung <jvoung@chromium.org> | 2013-02-12 17:05:38 -0800 |
---|---|---|
committer | Jan Voung <jvoung@chromium.org> | 2013-02-12 17:05:38 -0800 |
commit | 9e1067bd3646621b7691cc3947ca0bd9f087a0af (patch) | |
tree | 3252d05dd4ea9acfcabfdd924d578158c4cb9d71 /lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 373dd3979978f4ab853ea638cecd847d99b038b4 (diff) |
llvm-sb: Remove non-streaming code path and write to file directly.
This avoids a use of the ParseIR/ParseIRFile API in the
sandboxed translator. ParseIR and friends are flexible and
handle LLVM .ll parsing. We only need to handle bitcode
streams... By removing a use of ParseIR*, LTO will remove
all LLParser-related code. Helps reduce the size of the
sandboxed LLC by a couple hundred KB.
Also, finally do the cleanup that makes the translator write
to its output file directly, rather than writing to a string
stream before finally writing the output to a file. May
save a couple of MB of memory (size of the object file)...
BUG= http://code.google.com/p/nativeclient/issues/detail?id=1222
Review URL: https://codereview.chromium.org/12224132
Diffstat (limited to 'lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions