[PATCH] [llgo] irgen: modify the ABI to use init guards instead of priority
Peter Collingbourne
peter at pcc.me.uk
Tue Dec 30 16:26:55 PST 2014
================
Comment at: irgen/ssa.go:429
@@ +428,3 @@
+ if !fr.GccgoABI {
+ initGuard := llvm.AddGlobal(fr.module.Module, llvm.Int1Type(), "init$guard")
+ initGuard.SetLinkage(llvm.InternalLinkage)
----------------
axw wrote:
> Would you mind moving this code to a separate function? defineFunction is getting a bit long.
Done.
http://reviews.llvm.org/D6804
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the llvm-commits
mailing list