Commit 8dbb4a0a by Reed Kotler Committed by Jim Stichnoth

Clean up remnants of direct use of PNACL_BROWSER_TRANSLATOR

BUG= R=kschimpf@google.com, stichnot@chromium.org Review URL: https://codereview.chromium.org/1514193003 . Patch from Reed Kotler <rkotlerimgtec@gmail.com>.
parent 662d4eba
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include "IceCompiler.h" #include "IceCompiler.h"
#include "IceBuildDefs.h"
#include "IceCfg.h" #include "IceCfg.h"
#include "IceClFlags.h" #include "IceClFlags.h"
#include "IceClFlagsExtra.h" #include "IceClFlagsExtra.h"
...@@ -51,7 +52,7 @@ struct { ...@@ -51,7 +52,7 @@ struct {
{"llvm_ir", BuildDefs::llvmIr()}, {"llvm_ir", BuildDefs::llvmIr()},
{"llvm_ir_as_input", BuildDefs::llvmIrAsInput()}, {"llvm_ir_as_input", BuildDefs::llvmIrAsInput()},
{"minimal_build", BuildDefs::minimal()}, {"minimal_build", BuildDefs::minimal()},
{"browser_mode", PNACL_BROWSER_TRANSLATOR}}; {"browser_mode", BuildDefs::browser()}};
// Validates values of build attributes. Prints them to Stream if Stream is // Validates values of build attributes. Prints them to Stream if Stream is
// non-null. // non-null.
...@@ -133,7 +134,7 @@ void Compiler::run(const Ice::ClFlagsExtra &ExtraFlags, GlobalContext &Ctx, ...@@ -133,7 +134,7 @@ void Compiler::run(const Ice::ClFlagsExtra &ExtraFlags, GlobalContext &Ctx,
PTranslator->translate(IRFilename, std::move(MemObj)); PTranslator->translate(IRFilename, std::move(MemObj));
Translator.reset(PTranslator.release()); Translator.reset(PTranslator.release());
} else if (BuildDefs::llvmIr()) { } else if (BuildDefs::llvmIr()) {
if (PNACL_BROWSER_TRANSLATOR) { if (BuildDefs::browser()) {
Ctx.getStrError() Ctx.getStrError()
<< "non BuildOnRead is not supported w/ PNACL_BROWSER_TRANSLATOR\n"; << "non BuildOnRead is not supported w/ PNACL_BROWSER_TRANSLATOR\n";
return Ctx.getErrorStatus()->assign(EC_Args); return Ctx.getErrorStatus()->assign(EC_Args);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment