mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-29 14:40:25 +00:00
405887419f
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89833 91177308-0d34-0410-b5e6-96231b3b80d8
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");
|
|
}
|