PEI is now responsible for adding MaxCallFrameSize to frame size and align the stack...
[oota-llvm.git] / include / llvm / Support / Disassembler.h
1 //===- llvm/Support/Disassembler.h ------------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file was developed by Anton Korobeynikov and is distributed under the
6 // University of Illinois Open Source License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file implements the necessary glue to call external disassembler
11 // libraries.
12 //
13 //===----------------------------------------------------------------------===//
14
15 #ifndef LLVM_SUPPORT_DISASSEMBLER_H
16 #define LLVM_SUPPORT_DISASSEMBLER_H
17
18 #include "llvm/Support/DataTypes.h"
19 #include <string>
20
21 namespace llvm {
22
23 namespace Disassembler {
24   enum Type {
25     X86_32,
26     X86_64,
27     Undefined
28   };
29 }
30   
31
32 std::string disassembleBuffer(uint8_t* start, size_t length,
33                               Disassembler::Type type, uint64_t pc);
34 }
35
36 #endif // LLVM_SUPPORT_DISASSEMBLER_H