From 90c5b3d753cef1f731dbb66f151da75af1f024b4 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 15 Oct 2001 13:47:13 +0000 Subject: [PATCH] Minor code cleanups git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@825 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llc/llc.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp index b769cb5cfd4..1ce23b083b5 100644 --- a/tools/llc/llc.cpp +++ b/tools/llc/llc.cpp @@ -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; }