github.com/llir/llvm@v0.3.6/ir/module_alias.go (about) 1 package ir 2 3 import "github.com/llir/llvm/ir/constant" 4 5 // NewAlias appends a new alias to the module based on the given alias name and 6 // aliasee. 7 func (m *Module) NewAlias(name string, aliasee constant.Constant) *Alias { 8 alias := NewAlias(name, aliasee) 9 m.Aliases = append(m.Aliases, alias) 10 return alias 11 }