Daniel Dunbar | 12783d1 | 2010-02-21 21:54:14 +0000 | [diff] [blame] | 1 | //===-- X86AsmBackend.cpp - X86 Assembler Backend -------------------------===// |
| 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 | #include "llvm/Target/TargetAsmBackend.h" |
| 11 | #include "X86.h" |
| 12 | #include "llvm/Target/TargetRegistry.h" |
| 13 | #include "llvm/Target/TargetAsmBackend.h" |
| 14 | using namespace llvm; |
| 15 | |
| 16 | namespace { |
| 17 | |
| 18 | class X86AsmBackend : public TargetAsmBackend { |
| 19 | public: |
Daniel Dunbar | 6c27f5e | 2010-03-11 01:34:16 +0000 | [diff] [blame^] | 20 | X86AsmBackend(const Target &T) |
Daniel Dunbar | 12783d1 | 2010-02-21 21:54:14 +0000 | [diff] [blame] | 21 | : TargetAsmBackend(T) {} |
| 22 | }; |
| 23 | |
| 24 | } |
| 25 | |
| 26 | TargetAsmBackend *llvm::createX86_32AsmBackend(const Target &T, |
Daniel Dunbar | 6c27f5e | 2010-03-11 01:34:16 +0000 | [diff] [blame^] | 27 | const std::string &TT) { |
| 28 | return new X86AsmBackend(T); |
Daniel Dunbar | 12783d1 | 2010-02-21 21:54:14 +0000 | [diff] [blame] | 29 | } |
| 30 | |
| 31 | TargetAsmBackend *llvm::createX86_64AsmBackend(const Target &T, |
Daniel Dunbar | 6c27f5e | 2010-03-11 01:34:16 +0000 | [diff] [blame^] | 32 | const std::string &TT) { |
| 33 | return new X86AsmBackend(T); |
Daniel Dunbar | 12783d1 | 2010-02-21 21:54:14 +0000 | [diff] [blame] | 34 | } |