compiler: do not remove dead globals

These were not removed when they contain data, and will be removed by
LLVM anyway.
This commit is contained in:
Ayke van Laethem
2018-09-17 15:14:04 +02:00
parent b0aeaed635
commit 1f2af7d848
2 changed files with 1 additions and 20 deletions
-1
View File
@@ -50,7 +50,6 @@ type Function struct {
type Global struct {
g *ssa.Global
llvmGlobal llvm.Value
flag bool // used by dead code elimination
initializer Value
}