forked from OSchip/llvm-project
parent
d824f8825b
commit
88c46d713b
|
@ -0,0 +1,36 @@
|
|||
//===-- llvm/Target/TargetAsmLexer.h - Target Assembly Lexer ----*- C++ -*-===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
// This file is distributed under the University of Illinois Open Source
|
||||
// License. See LICENSE.TXT for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_TARGET_TARGETASMLEXER_H
|
||||
#define LLVM_TARGET_TARGETASMLEXER_H
|
||||
|
||||
namespace llvm {
|
||||
class Target;
|
||||
|
||||
/// TargetAsmLexer - Generic interface to target specific assembly lexers.
|
||||
class TargetAsmLexer {
|
||||
TargetAsmLexer(const TargetAsmLexer &); // DO NOT IMPLEMENT
|
||||
void operator=(const TargetAsmLexer &); // DO NOT IMPLEMENT
|
||||
protected: // Can only create subclasses.
|
||||
TargetAsmLexer(const Target &);
|
||||
|
||||
/// TheTarget - The Target that this machine was created for.
|
||||
const Target &TheTarget;
|
||||
|
||||
public:
|
||||
virtual ~TargetAsmLexer();
|
||||
|
||||
const Target &getTarget() const { return TheTarget; }
|
||||
|
||||
|
||||
};
|
||||
|
||||
} // End llvm namespace
|
||||
|
||||
#endif
|
|
@ -0,0 +1,14 @@
|
|||
//===-- llvm/Target/TargetAsmLexer.cpp - Target Assembly Lexer ------------===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
// This file is distributed under the University of Illinois Open Source
|
||||
// License. See LICENSE.TXT for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "llvm/Target/TargetAsmLexer.h"
|
||||
using namespace llvm;
|
||||
|
||||
TargetAsmLexer::TargetAsmLexer(const Target &T) : TheTarget(T) {}
|
||||
TargetAsmLexer::~TargetAsmLexer() {}
|
Loading…
Reference in New Issue