Skip to content

Commit

Permalink
Specify static
Browse files Browse the repository at this point in the history
  • Loading branch information
tyfkda committed Nov 25, 2024
1 parent 8dfaa79 commit ac1e7f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cc/backend/ssa.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#define ORIG_VIRT(vreg) ((vreg)->orig_virt >= 0 ? (vreg)->orig_virt : (vreg)->virt)

inline void assign_new_vregs(RegAlloc *ra, Vector **vreg_table, BB *bb, VReg **vregs) {
static inline void assign_new_vregs(RegAlloc *ra, Vector **vreg_table, BB *bb, VReg **vregs) {
for (int iir = 0; iir < bb->irs->len; ++iir) {
IR *ir = bb->irs->data[iir];
if (ir->opr1 != NULL && !(ir->opr1->flag & (VRF_CONST | VRF_REF))) {
Expand All @@ -35,7 +35,7 @@ inline void assign_new_vregs(RegAlloc *ra, Vector **vreg_table, BB *bb, VReg **v
}
}

inline void push_nexts(BB *bb, Vector *unchecked) {
static inline void push_nexts(BB *bb, Vector *unchecked) {
Vector *irs = bb->irs;
if (irs->len > 0) {
IR *ir = irs->data[irs->len - 1]; // JMP must be the last IR.
Expand Down

0 comments on commit ac1e7f9

Please sign in to comment.