mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 02:36:06 +00:00
simplify this now that createX86CodePrinterPass is trivial
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82392 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3859638b5f
commit
547a685ff9
@ -22,18 +22,6 @@
|
||||
#include "llvm/Target/TargetRegistry.h"
|
||||
using namespace llvm;
|
||||
|
||||
/// createX86CodePrinterPass - Returns a pass that prints the X86 assembly code
|
||||
/// for a MachineFunction to the given output stream, using the given target
|
||||
/// machine description.
|
||||
///
|
||||
static AsmPrinter *createX86CodePrinterPass(formatted_raw_ostream &o,
|
||||
TargetMachine &tm,
|
||||
const MCAsmInfo *tai,
|
||||
bool verbose) {
|
||||
return new X86AsmPrinter(o, tm, tai, verbose);
|
||||
}
|
||||
|
||||
|
||||
static MCInstPrinter *createX86MCInstPrinter(const Target &T,
|
||||
unsigned SyntaxVariant,
|
||||
const MCAsmInfo &MAI,
|
||||
@ -47,8 +35,8 @@ static MCInstPrinter *createX86MCInstPrinter(const Target &T,
|
||||
|
||||
// Force static initialization.
|
||||
extern "C" void LLVMInitializeX86AsmPrinter() {
|
||||
TargetRegistry::RegisterAsmPrinter(TheX86_32Target, createX86CodePrinterPass);
|
||||
TargetRegistry::RegisterAsmPrinter(TheX86_64Target, createX86CodePrinterPass);
|
||||
RegisterAsmPrinter<X86AsmPrinter> X(TheX86_32Target);
|
||||
RegisterAsmPrinter<X86AsmPrinter> Y(TheX86_64Target);
|
||||
|
||||
TargetRegistry::RegisterMCInstPrinter(TheX86_32Target,createX86MCInstPrinter);
|
||||
TargetRegistry::RegisterMCInstPrinter(TheX86_64Target,createX86MCInstPrinter);
|
||||
|
Loading…
x
Reference in New Issue
Block a user