Files
swift-mirror/test/SILGen/Inputs/ModuleB.swift
Dave Abrahams 90a34d86fa Mangle names of globalinit_{token,func} like other private entities.
This allows making global addressors fragile (They use globalinit_{token,func} for initialization of globals).

It has no noticable performance impact on our benchmarks, but it removes an ugly hack which explicitly
prevented addressors from being fragile.

Swift SVN r22812
2014-10-17 06:02:22 +00:00

13 lines
152 B
Swift

private var gg = nonTrivialInit()
public func get_gg_b() -> Int {
return gg
}
@inline(never)
private func nonTrivialInit() -> Int {
return 28
}