Skip to content

Commit 5d0d5b6

Browse files
committed
Zend/Optimizer/zend_func_info: include cleanup
1 parent 33b360b commit 5d0d5b6

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

Zend/Optimizer/zend_func_info.c

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,9 @@
1717
+----------------------------------------------------------------------+
1818
*/
1919

20-
#include "zend_compile.h"
21-
#include "zend_extensions.h"
22-
#include "zend_ssa.h"
23-
#include "zend_optimizer_internal.h"
24-
#include "zend_inference.h"
25-
#include "zend_call_graph.h"
2620
#include "zend_func_info.h"
27-
#include "zend_inference.h"
28-
#ifdef _WIN32
29-
#include "win32/ioutil.h"
30-
#endif
21+
#include "zend_extensions.h" // for zend_get_resource_handle()
22+
#include "zend_inference.h" // for zend_get_return_info_from_signature_only(), _ssa_op1_info()
3123

3224
typedef uint32_t (*info_func_t)(const zend_call_info *call_info, const zend_ssa *ssa);
3325

Zend/Optimizer/zend_func_info.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#ifndef ZEND_FUNC_INFO_H
2020
#define ZEND_FUNC_INFO_H
2121

22-
#include "zend_ssa.h"
22+
#include "zend_call_graph.h"
2323

2424
/* func/cfg flags */
2525
#define ZEND_FUNC_INDIRECT_VAR_ACCESS (1<<0) /* accesses variables by name */
@@ -43,6 +43,7 @@
4343

4444
typedef struct _zend_func_info zend_func_info;
4545
typedef struct _zend_call_info zend_call_info;
46+
typedef struct _zend_ssa zend_ssa;
4647

4748
#define ZEND_FUNC_INFO(op_array) \
4849
((zend_func_info*)((op_array)->reserved[zend_func_info_rid]))

0 commit comments

Comments
 (0)