OSDN Git Service

First attempt to capture parser/translation errors in browser.
authorKarl Schimpf <kschimpf@google.com>
Wed, 22 Apr 2015 22:20:16 +0000 (15:20 -0700)
committerKarl Schimpf <kschimpf@google.com>
Wed, 22 Apr 2015 22:20:16 +0000 (15:20 -0700)
commit2f67b929c15a30d5ed43b9929cac95a96fec0bbe
tree09149465c55b1974aa8bff9e5b051a0013f9c5f8
parentb36ad9b4021b409dfb925ce51196a1abb4dfcb62
First attempt to capture parser/translation errors in browser.

Adds a notion of an (optional) error stream to the existing
log and emit streams. If not specified, the log stream is used.
Error messages in parser/translation are sent to this new error
stream.

In the browser compiler server, a separate error (string) stream is
created to capture errors. Method onEndCallBack returns the contents
of the error stream (if non-empty) instead of a generic error message.

BUG= https://code.google.com/p/nativeclient/issues/detail?id=4138
R=jvoung@chromium.org

Review URL: https://codereview.chromium.org/1052833003
src/IceBrowserCompileServer.cpp
src/IceBrowserCompileServer.h
src/IceCompileServer.cpp
src/IceGlobalContext.cpp
src/IceGlobalContext.h
src/PNaClTranslator.cpp
unittest/BitcodeMunge.cpp