1 //===-- llvm/Target/TargetAsmBackend.h - Target Asm Backend -----*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_TARGET_TARGETASMBACKEND_H
11 #define LLVM_TARGET_TARGETASMBACKEND_H
16 /// TargetAsmBackend - Generic interface to target specific assembler backends.
17 class TargetAsmBackend {
18 TargetAsmBackend(const TargetAsmBackend &); // DO NOT IMPLEMENT
19 void operator=(const TargetAsmBackend &); // DO NOT IMPLEMENT
20 protected: // Can only create subclasses.
21 TargetAsmBackend(const Target &);
23 /// TheTarget - The Target that this machine was created for.
24 const Target &TheTarget;
27 virtual ~TargetAsmBackend();
29 const Target &getTarget() const { return TheTarget; }
33 } // End llvm namespace