forked from OSchip/llvm-project
parent
05d8cca8b6
commit
c6f915e40d
|
@ -39,6 +39,9 @@ OutputFilename("o", cl::desc("Override output filename"),
|
||||||
static cl::opt<bool>
|
static cl::opt<bool>
|
||||||
Force("f", cl::desc("Overwrite output files"));
|
Force("f", cl::desc("Overwrite output files"));
|
||||||
|
|
||||||
|
static cl::opt<bool>
|
||||||
|
DisableOutput("disable-output", cl::desc("Disable output"), cl::init(false));
|
||||||
|
|
||||||
static cl::opt<bool>
|
static cl::opt<bool>
|
||||||
DumpAsm("d", cl::desc("Print assembly as parsed"), cl::Hidden);
|
DumpAsm("d", cl::desc("Print assembly as parsed"), cl::Hidden);
|
||||||
|
|
||||||
|
@ -125,8 +128,9 @@ int main(int argc, char **argv) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Force || !CheckBitcodeOutputToConsole(Out,true))
|
if (!DisableOutput)
|
||||||
WriteBitcodeToFile(M.get(), *Out);
|
if (Force || !CheckBitcodeOutputToConsole(Out,true))
|
||||||
|
WriteBitcodeToFile(M.get(), *Out);
|
||||||
} catch (const std::string& msg) {
|
} catch (const std::string& msg) {
|
||||||
cerr << argv[0] << ": " << msg << "\n";
|
cerr << argv[0] << ": " << msg << "\n";
|
||||||
exitCode = 1;
|
exitCode = 1;
|
||||||
|
|
Loading…
Reference in New Issue