mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
Only output code if file open is successful
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@890 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
79a334968c
commit
c9a1de6d1b
@ -86,8 +86,6 @@ public:
|
||||
|
||||
|
||||
virtual bool doPassFinalization(Module *M) {
|
||||
// TODO: This should be performed as a moduleCleanup function, but we don't
|
||||
// have one yet!
|
||||
Target.emitAssembly(M, *Out);
|
||||
|
||||
if (DeleteStream) delete Out;
|
||||
@ -147,11 +145,11 @@ int main(int argc, char **argv) {
|
||||
<< "! SKIPPING OUTPUT OF TRACE CODE\n";
|
||||
delete os;
|
||||
retCode = 1;
|
||||
} else {
|
||||
Passes.push_back(new PrintModulePass("", os,
|
||||
/*deleteStream*/ true,
|
||||
/*printAsBytecode*/ ! DebugTrace));
|
||||
}
|
||||
|
||||
Passes.push_back(new PrintModulePass("", os,
|
||||
/*deleteStream*/ true,
|
||||
/*printAsBytecode*/ ! DebugTrace));
|
||||
}
|
||||
|
||||
// If LLVM dumping after transformations is requested, add it to the pipeline
|
||||
|
Loading…
x
Reference in New Issue
Block a user