Don't use Aast.Any when marking expressions as type Tany
[hiphop-php.git] / hphp / ppc64-asm / dasm-ppc64.h
blob92fb55b7a767494d9093eb4159258c367cd15ad6
1 /*
2 +----------------------------------------------------------------------+
3 | HipHop for PHP |
4 +----------------------------------------------------------------------+
5 | (c) Copyright IBM Corporation 2015-2016 |
6 +----------------------------------------------------------------------+
7 | This source file is subject to version 3.01 of the PHP license, |
8 | that is bundled with this package in the file LICENSE, and is |
9 | available through the world-wide-web at the following url: |
10 | http://www.php.net/license/3_01.txt |
11 | If you did not receive a copy of the PHP license and are unable to |
12 | obtain it through the world-wide-web, please send a note to |
13 | license@php.net so we can mail you a copy immediately. |
14 +----------------------------------------------------------------------+
17 #ifndef incl_HPHP_PPC64_ASM_DASM_PPC64_H_
18 #define incl_HPHP_PPC64_ASM_DASM_PPC64_H_
20 #include <ostream>
22 namespace ppc64_asm {
24 struct Disassembler {
25 public:
26 Disassembler()
27 : print_encoding_(false)
28 , print_address_(false)
29 , indent_level_(0)
30 , color_(nullptr)
33 Disassembler(bool print_enc,
34 bool print_addr, int indent_level, std::string color)
35 : print_encoding_(print_enc)
36 , print_address_(print_addr)
37 , indent_level_(indent_level)
38 , color_(color)
41 ~Disassembler() {}
43 void disassembly(std::ostream& out,
44 const uint8_t* const instr,
45 const uint8_t* const address = nullptr);
47 private:
48 bool print_encoding_;
49 bool print_address_;
50 int indent_level_;
51 std::string color_;
54 } // namespace ppc64_asm
56 #endif