Skip to content

Commit 0b22b09

Browse files
committed
Refine declaration
1 parent e408218 commit 0b22b09

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/jit.h

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
#include <stdint.h>
99

10-
#include "common.h"
1110
#include "riscv_private.h"
1211
#include "utils.h"
1312

@@ -59,15 +58,13 @@ typedef void (*exec_t2c_func_t)(riscv_t *);
5958
#if RV32_HAS(JIT_CACHE)
6059
#define MAX_JIT_CACHE_TABLE_ENTRIES (1 << 12)
6160

62-
/* clang-format off */
6361
struct jit_cache {
64-
__ALIGNED(4) uint32_t pc; /* program counter of ELF */
65-
__ALIGNED(4) uint32_t from; /* from whether t1c or t2c, ensure the correct
66-
alignment for accessing member in LLVM IR
62+
uint32_t pc __ALIGNED(4); /* program counter of ELF */
63+
uint32_t from __ALIGNED(4); /* from whether t1c or t2c, ensure the correct
64+
alignment for accessing member in LLVM IR
6765
*/
68-
void *entry; /* entry of JIT-ed code */
66+
void *entry; /* entry of JIT-ed code */
6967
};
70-
/* clang-format on */
7168

7269
struct jit_cache *jit_cache_init();
7370
void jit_cache_exit(struct jit_cache *cache);

0 commit comments

Comments
 (0)