Fix Go IR test for changes in DIBuilder API
authorHarlan Haskins <harlan@harlanhaskins.com>
Mon, 2 Apr 2018 21:45:35 +0000 (21:45 +0000)
committerHarlan Haskins <harlan@harlanhaskins.com>
Mon, 2 Apr 2018 21:45:35 +0000 (21:45 +0000)
llvm-svn: 329021

llvm/bindings/go/llvm/ir_test.go

index 5cd782b..10f4968 100644 (file)
@@ -112,7 +112,11 @@ func TestDebugLoc(t *testing.T) {
        }()
        file := d.CreateFile("dummy_file", "dummy_dir")
        voidInfo := d.CreateBasicType(DIBasicType{Name: "void"})
        }()
        file := d.CreateFile("dummy_file", "dummy_dir")
        voidInfo := d.CreateBasicType(DIBasicType{Name: "void"})
-       typeInfo := d.CreateSubroutineType(DISubroutineType{file, []Metadata{voidInfo}})
+       typeInfo := d.CreateSubroutineType(DISubroutineType{
+               File:       file,
+               Parameters: []Metadata{voidInfo},
+               Flags:      0,
+       })
        scope := d.CreateFunction(file, DIFunction{
                Name:         "foo",
                LinkageName:  "foo",
        scope := d.CreateFunction(file, DIFunction{
                Name:         "foo",
                LinkageName:  "foo",