aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Support/Disassembler.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Support/Disassembler.h')
-rw-r--r--include/llvm/Support/Disassembler.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/include/llvm/Support/Disassembler.h b/include/llvm/Support/Disassembler.h
new file mode 100644
index 0000000000..3d0d798de8
--- /dev/null
+++ b/include/llvm/Support/Disassembler.h
@@ -0,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