mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-09 13:41:47 +00:00
12783d1c3a
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96763 91177308-0d34-0410-b5e6-96231b3b80d8
35 lines
991 B
C++
35 lines
991 B
C++
//===-- 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);
|
|
}
|