Go bindings: make various DIBuilder arguments optional.
authorPeter Collingbourne <peter@pcc.me.uk>
Wed, 8 Apr 2015 20:18:57 +0000 (20:18 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Wed, 8 Apr 2015 20:18:57 +0000 (20:18 +0000)
commit1568175235766d9dcf6bad89b9b4571f6c2b598b
tree3b1c8a847efec6aed701939e3db43347238b2991
parentca3d6c0fe66122eb6d24c68a463a1a6cf2b17fd4
Go bindings: make various DIBuilder arguments optional.

r234262 changed some code in DIBuilderBindings.cpp to use the unwrap function
to unwrap debug metadata. The problem with this is that unwrap asserts that
its argument is non-null, which is not what we want in a number of places
in DIBuilder where the argument is optional. This change makes certain
arguments optional by adding null checks in places where it is required,
fixing the llgo build.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234428 91177308-0d34-0410-b5e6-96231b3b80d8
bindings/go/llvm/DIBuilderBindings.cpp