Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.0 KiB

  1. //===- llvm/Support/Disassembler.h ------------------------------*- C++ -*-===//
  2. //
  3. // The LLVM Compiler Infrastructure
  4. //
  5. // This file is distributed under the University of Illinois Open Source
  6. // 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. #ifndef LLVM_SYSTEM_DISASSEMBLER_H
  15. #define LLVM_SYSTEM_DISASSEMBLER_H
  16. #include "llvm/Support/DataTypes.h"
  17. #include <string>
  18. namespace llvm {
  19. namespace sys {
  20. /// This function returns true, if there is possible to use some external
  21. /// disassembler library. False otherwise.
  22. bool hasDisassembler();
  23. /// This function provides some "glue" code to call external disassembler
  24. /// libraries.
  25. std::string disassembleBuffer(uint8_t* start, size_t length, uint64_t pc = 0);
  26. }
  27. }
  28. #endif // LLVM_SYSTEM_DISASSEMBLER_H