[PATCH] [llgo] irgen: modify the ABI to use init guards instead of priority
Andrew Wilkins
axwalk at gmail.com
Mon Dec 29 16:50:45 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)
----------------
Would you mind moving this code to a separate function? defineFunction is getting a bit long.
http://reviews.llvm.org/D6804
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the llvm-commits
mailing list