| Index: tools/pnacl-llc/pnacl-llc.cpp
|
| diff --git a/tools/pnacl-llc/pnacl-llc.cpp b/tools/pnacl-llc/pnacl-llc.cpp
|
| index 5aefdf4e001f1716fb68a2658873b66152d31714..e9fe6779c1841f2396ea83529e0abc520694249e 100644
|
| --- a/tools/pnacl-llc/pnacl-llc.cpp
|
| +++ b/tools/pnacl-llc/pnacl-llc.cpp
|
| @@ -325,10 +325,19 @@ static Module* getModule(StringRef ProgramName, LLVMContext &Context,
|
| SMDiagnostic Err;
|
| if (LazyBitcode) {
|
| std::string StrError;
|
| + bool VerboseErrors =
|
| +#if defined(__native_client__)
|
| + false
|
| +#else
|
| + /* Print useful parse errors when not sandboxed */
|
| + true
|
| +#endif
|
| + ;
|
| if (InputFileFormat == PNaClFormat) {
|
| M = getNaClStreamedBitcodeModule(
|
| InputFilename,
|
| - new ThreadedStreamingCache(StreamingObject), Context, &StrError);
|
| + new ThreadedStreamingCache(StreamingObject),
|
| + Context, VerboseErrors, &StrError);
|
| } else if (InputFileFormat == LLVMFormat) {
|
| M = getStreamedBitcodeModule(
|
| InputFilename,
|
|
|