mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-11 10:31:40 +00:00
31 lines
1008 B
C++
31 lines
1008 B
C++
|
//===- DisassemblerEmitter.cpp - Generate a disassembler ------------------===//
|
||
|
//
|
||
|
// The LLVM Compiler Infrastructure
|
||
|
//
|
||
|
// This file is distributed under the University of Illinois Open Source
|
||
|
// License. See LICENSE.TXT for details.
|
||
|
//
|
||
|
//===----------------------------------------------------------------------===//
|
||
|
|
||
|
#include "DisassemblerEmitter.h"
|
||
|
#include "CodeGenTarget.h"
|
||
|
#include "Record.h"
|
||
|
using namespace llvm;
|
||
|
|
||
|
void DisassemblerEmitter::run(raw_ostream &OS) {
|
||
|
CodeGenTarget Target;
|
||
|
|
||
|
OS << "/*===- TableGen'erated file "
|
||
|
<< "---------------------------------------*- C -*-===*\n"
|
||
|
<< " *\n"
|
||
|
<< " * " << Target.getName() << " Disassembler\n"
|
||
|
<< " *\n"
|
||
|
<< " * Automatically generated file, do not edit!\n"
|
||
|
<< " *\n"
|
||
|
<< " *===---------------------------------------------------------------"
|
||
|
<< "-------===*/\n";
|
||
|
|
||
|
throw TGError(Target.getTargetRecord()->getLoc(),
|
||
|
"Unable to generate disassembler for this target");
|
||
|
}
|