summaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/X86AsmBackend.cpp
blob: e6654efbbb485755bbec4b4280564e77121c0125 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//===-- X86AsmBackend.cpp - X86 Assembler Backend -------------------------===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#include "llvm/Target/TargetAsmBackend.h"
#include "X86.h"
#include "llvm/Target/TargetRegistry.h"
#include "llvm/Target/TargetAsmBackend.h"
using namespace llvm;

namespace {

class X86AsmBackend : public TargetAsmBackend {
public:
  X86AsmBackend(const Target &T, MCAssembler &A)
    : TargetAsmBackend(T) {}
};

}

TargetAsmBackend *llvm::createX86_32AsmBackend(const Target &T,
                                               MCAssembler &A) {
  return new X86AsmBackend(T, A);
}

TargetAsmBackend *llvm::createX86_64AsmBackend(const Target &T,
                                               MCAssembler &A) {
  return new X86AsmBackend(T, A);
}