diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2007-01-23 10:26:08 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2007-01-23 10:26:08 +0000 |
commit | fd58e6e2ecebe92804869586d65b27085110f336 (patch) | |
tree | 067cf2959f87caa9c8d14e179d876c2642326842 /include/llvm/System | |
parent | 367372a30c36776e31958f0dc38306f32b80aa7c (diff) | |
download | external_llvm-fd58e6e2ecebe92804869586d65b27085110f336.zip external_llvm-fd58e6e2ecebe92804869586d65b27085110f336.tar.gz external_llvm-fd58e6e2ecebe92804869586d65b27085110f336.tar.bz2 |
Moved disassembler to libSystem
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33461 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/System')
-rw-r--r-- | include/llvm/System/Disassembler.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/include/llvm/System/Disassembler.h b/include/llvm/System/Disassembler.h new file mode 100644 index 0000000..37a8761 --- /dev/null +++ b/include/llvm/System/Disassembler.h @@ -0,0 +1,31 @@ +//===- 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_SYSTEM_DISASSEMBLER_H +#define LLVM_SYSTEM_DISASSEMBLER_H + +#include "llvm/Support/DataTypes.h" +#include <string> + +namespace llvm { +namespace sys { + +/// This function provides some "glue" code to call external disassembler +/// libraries. +std::string disassembleBuffer(uint8_t* start, size_t length, uint64_t pc = 0); + +} +} + +#endif // LLVM_SYSTEM_DISASSEMBLER_H |