Minor code cleanups

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@825 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2001-10-15 13:47:13 +00:00
parent 3ef77fcd55
commit 90c5b3d753

View File

@ -329,17 +329,15 @@ main(int argc, char **argv)
return 1;
}
int failed = PreprocessModule(M.get());
if (PreprocessModule(M.get())) return 1;
if (!failed)
failed = OptimizeModule(M.get());
if (OptimizeModule(M.get())) return 1;
if (!failed)
failed = GenerateCodeForModule(M.get(), target.get());
if (GenerateCodeForModule(M.get(), target.get())) return 1;
if (!failed && ! DoNotEmitAssembly)
failed = EmitAssemblyForModule(M.get(), target.get());
if (!DoNotEmitAssembly)
if (EmitAssemblyForModule(M.get(), target.get())) return 1;
return failed;
return 0;
}