llgo/ssa: pkg.PyLoadModSyms (source code stablility)

This commit is contained in:
xushiwei
2024-05-19 07:57:12 +08:00
parent ba8e48be38
commit 04428c5aed
4 changed files with 47 additions and 36 deletions

View File

@@ -77,7 +77,7 @@ type InsertPoint int
const (
AtEnd InsertPoint = iota
AtStart
AfterInit
afterInit
)
// SetBlockEx sets blk as current basic block and pos as its insert point.
@@ -90,7 +90,7 @@ func (b Builder) SetBlockEx(blk BasicBlock, pos InsertPoint) Builder {
b.impl.SetInsertPointAtEnd(blk.impl)
case AtStart:
b.impl.SetInsertPointBefore(blk.impl.FirstInstruction())
case AfterInit:
case afterInit:
b.impl.SetInsertPointBefore(instrAfterInit(blk.impl))
default:
panic("SetBlockEx: invalid pos")