Daniel Dunbar | 4058874 | 2009-11-25 02:13:23 +0000 | [diff] [blame] | 1 | //===- DisassemblerEmitter.cpp - Generate a disassembler ------------------===// |
| 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 "DisassemblerEmitter.h" |
| 11 | #include "CodeGenTarget.h" |
| 12 | #include "Record.h" |
| 13 | using namespace llvm; |
| 14 | |
| 15 | void DisassemblerEmitter::run(raw_ostream &OS) { |
| 16 | CodeGenTarget Target; |
| 17 | |
| 18 | OS << "/*===- TableGen'erated file " |
| 19 | << "---------------------------------------*- C -*-===*\n" |
| 20 | << " *\n" |
| 21 | << " * " << Target.getName() << " Disassembler\n" |
| 22 | << " *\n" |
| 23 | << " * Automatically generated file, do not edit!\n" |
| 24 | << " *\n" |
| 25 | << " *===---------------------------------------------------------------" |
| 26 | << "-------===*/\n"; |
| 27 | |
| 28 | throw TGError(Target.getTargetRecord()->getLoc(), |
| 29 | "Unable to generate disassembler for this target"); |
| 30 | } |