compiler: move NonConstGlobals pass to transform package

This commit is contained in:
Ayke van Laethem
2020-03-18 20:41:19 +01:00
committed by Ron Evans
parent b6314fa6ab
commit c5cb2cec9b
6 changed files with 31 additions and 12 deletions
+7
View File
@@ -12,3 +12,10 @@ func TestApplyFunctionSections(t *testing.T) {
ApplyFunctionSections(mod)
})
}
func TestNonConstGlobals(t *testing.T) {
t.Parallel()
testTransform(t, "testdata/globals-non-const", func(mod llvm.Module) {
NonConstGlobals(mod)
})
}