mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-25 20:59:51 +00:00
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:
parent
c21708a4ea
commit
e737c7ac63
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user