Convert llc driver to standard tool format

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@496 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2001-09-07 22:20:50 +00:00
parent c21708a4ea
commit e737c7ac63

View File

@ -1,15 +1,9 @@
// $Id$ //===------------------------------------------------------------------------===
//*************************************************************************** // LLVM 'LLC' UTILITY
// File: //
// llc.cpp // This is the llc compiler driver.
// //
// Purpose: //===------------------------------------------------------------------------===
// Driver for llc compiler.
//
// History:
// 7/15/01 - Vikram Adve - Created
//
//**************************************************************************/
#include "llvm/Bytecode/Reader.h" #include "llvm/Bytecode/Reader.h"
#include "llvm/Optimizations/Normalize.h" #include "llvm/Optimizations/Normalize.h"
@ -23,7 +17,6 @@
cl::String InputFilename ("", "Input filename", cl::NoFlags, "-"); cl::String InputFilename ("", "Input filename", cl::NoFlags, "-");
cl::String OutputFilename("o", "Output filename", cl::NoFlags, ""); cl::String OutputFilename("o", "Output filename", cl::NoFlags, "");
static void NormalizeMethod(Method* method) { static void NormalizeMethod(Method* method) {
NormalizePhiConstantArgs(method); NormalizePhiConstantArgs(method);
} }
@ -36,8 +29,8 @@ static bool CompileModule(Module *M, TargetMachine &Target) {
NormalizeMethod(Meth); NormalizeMethod(Meth);
if (SelectInstructionsForMethod(Meth, Target)) { if (SelectInstructionsForMethod(Meth, Target)) {
cerr << "Instruction selection failed for method " cerr << "Instruction selection failed for method " << Meth->getName()
<< Meth->getName() << "\n\n"; << "\n\n";
return true; return true;
} }