mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-21 03:53:04 +02:00
944088f221
llvm-svn: 33358
37 lines
961 B
C++
37 lines
961 B
C++
//===- 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
|