1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

Convert llc driver to standard tool format

llvm-svn: 496
This commit is contained in:
Chris Lattner 2001-09-07 22:20:50 +00:00
parent e0ca8ad220
commit f87b8ba9e3

View File

@ -1,15 +1,9 @@
// $Id$
//***************************************************************************
// File:
// llc.cpp
//
// Purpose:
// Driver for llc compiler.
//
// History:
// 7/15/01 - Vikram Adve - Created
//
//**************************************************************************/
//===------------------------------------------------------------------------===
// LLVM 'LLC' UTILITY
//
// This is the llc compiler driver.
//
//===------------------------------------------------------------------------===
#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;
}