stub out a new X86 encoder, which can be tried with
[oota-llvm.git] / lib / Target / X86 / X86MCCodeEmitter.cpp
1 //===-- X86/X86MCCodeEmitter.cpp - Convert X86 code to machine code -------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file implements the X86MCCodeEmitter class.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #define DEBUG_TYPE "x86-emitter"
15 #include "X86.h"
16 #include "X86TargetMachine.h"
17 #include "llvm/MC/MCCodeEmitter.h"
18 using namespace llvm;
19
20 namespace {
21 class X86MCCodeEmitter : public MCCodeEmitter {
22   X86MCCodeEmitter(const X86MCCodeEmitter &); // DO NOT IMPLEMENT
23   void operator=(const X86MCCodeEmitter &); // DO NOT IMPLEMENT
24   X86TargetMachine &TM;
25 public:
26   X86MCCodeEmitter(X86TargetMachine &tm) : TM(tm) {
27   }
28
29   ~X86MCCodeEmitter() {}
30   
31   void EncodeInstruction(const MCInst &MI, raw_ostream &OS) const {
32   }
33 };
34
35 } // end anonymous namespace
36
37
38 MCCodeEmitter *llvm::createX86MCCodeEmitter(const Target &,
39                                             TargetMachine &TM) {
40   return new X86MCCodeEmitter(static_cast<X86TargetMachine&>(TM));
41 }