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