Changes in directory llvm/include/llvm/Support:
Disassembler.h added (r1.1) --- Log message: Adding disassembler interface and external hook to udis86 library. --- Diffs of the changes: (+36 -0) Disassembler.h | 36 ++++++++++++++++++++++++++++++++++++ 1 files changed, 36 insertions(+) Index: llvm/include/llvm/Support/Disassembler.h diff -c /dev/null llvm/include/llvm/Support/Disassembler.h:1.1 *** /dev/null Fri Jan 19 11:25:27 2007 --- llvm/include/llvm/Support/Disassembler.h Fri Jan 19 11:25:17 2007 *************** *** 0 **** --- 1,36 ---- + //===- llvm/Support/Disassembler.h ------------------------------*- C++ -*-===// + // + // The LLVM Compiler Infrastructure + // + // This file was developed by Anton Korobeynikov and is distributed under the + // University of Illinois Open Source License. See LICENSE.TXT for details. + // + //===----------------------------------------------------------------------===// + // + // This file implements the necessary glue to call external disassembler + // libraries. + // + //===----------------------------------------------------------------------===// + + #ifndef LLVM_SUPPORT_DISASSEMBLER_H + #define LLVM_SUPPORT_DISASSEMBLER_H + + #include "llvm/Support/DataTypes.h" + #include <string> + + namespace llvm { + + namespace Disassembler { + enum Type { + X86_32, + X86_64, + Undefined + }; + } + + + std::string disassembleBuffer(uint8_t* start, size_t length, + Disassembler::Type type, uint64_t pc); + } + + #endif // LLVM_SUPPORT_DISASSEMBLER_H _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits