go-llvm / llgo

LLVM-based compiler for Go
Other
1.25k stars 81 forks source link

Give anonymous functions a mangled name prefix #220

Closed pcc closed 9 years ago

pcc commented 9 years ago

The issue that #218 tried to fix still affected anonymous functions, as the String() method may return a string that begins with 'llvm.'. To avoid this problem, mangle all such functions with a name prefix of '_anon'.

axw commented 9 years ago

LGTM.