summaryrefslogtreecommitdiff
path: root/bindings
diff options
context:
space:
mode:
authorLeny Kholodov <lkholodov@accesssoftek.com>2016-09-06 15:03:54 +0000
committerLeny Kholodov <lkholodov@accesssoftek.com>2016-09-06 15:03:54 +0000
commit7ba15530ab347acbed15b18001adf9e563fe96b0 (patch)
treec2ce7c8d95a8a413be8211876051a989894a06aa /bindings
parentc548b6803a061220b28a989a47f99a4108391866 (diff)
Fix for Bindings/Go/go.test after patch r280700
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@280711 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings')
-rw-r--r--bindings/go/llvm/DIBuilderBindings.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/bindings/go/llvm/DIBuilderBindings.cpp b/bindings/go/llvm/DIBuilderBindings.cpp
index e767144bb32..4e5a0510d92 100644
--- a/bindings/go/llvm/DIBuilderBindings.cpp
+++ b/bindings/go/llvm/DIBuilderBindings.cpp
@@ -79,7 +79,8 @@ LLVMMetadataRef LLVMDIBuilderCreateFunction(
return wrap(D->createFunction(unwrap<DIScope>(Scope), Name, LinkageName,
File ? unwrap<DIFile>(File) : nullptr, Line,
unwrap<DISubroutineType>(CompositeType),
- IsLocalToUnit, IsDefinition, ScopeLine, Flags,
+ IsLocalToUnit, IsDefinition, ScopeLine,
+ static_cast<DINode::DIFlags>(Flags),
IsOptimized));
}
@@ -91,7 +92,8 @@ LLVMDIBuilderCreateAutoVariable(LLVMDIBuilderRef Dref, LLVMMetadataRef Scope,
DIBuilder *D = unwrap(Dref);
return wrap(D->createAutoVariable(unwrap<DIScope>(Scope), Name,
unwrap<DIFile>(File), Line,
- unwrap<DIType>(Ty), AlwaysPreserve, Flags));
+ unwrap<DIType>(Ty), AlwaysPreserve,
+ static_cast<DINode::DIFlags>(Flags)));
}
LLVMMetadataRef LLVMDIBuilderCreateParameterVariable(
@@ -101,7 +103,7 @@ LLVMMetadataRef LLVMDIBuilderCreateParameterVariable(
DIBuilder *D = unwrap(Dref);
return wrap(D->createParameterVariable(
unwrap<DIScope>(Scope), Name, ArgNo, unwrap<DIFile>(File), Line,
- unwrap<DIType>(Ty), AlwaysPreserve, Flags));
+ unwrap<DIType>(Ty), AlwaysPreserve, static_cast<DINode::DIFlags>(Flags)));
}
LLVMMetadataRef LLVMDIBuilderCreateBasicType(LLVMDIBuilderRef Dref,
@@ -139,7 +141,7 @@ LLVMMetadataRef LLVMDIBuilderCreateStructType(
DIBuilder *D = unwrap(Dref);
return wrap(D->createStructType(
unwrap<DIScope>(Scope), Name, File ? unwrap<DIFile>(File) : nullptr, Line,
- SizeInBits, AlignInBits, Flags,
+ SizeInBits, AlignInBits, static_cast<DINode::DIFlags>(Flags),
DerivedFrom ? unwrap<DIType>(DerivedFrom) : nullptr,
ElementTypes ? DINodeArray(unwrap<MDTuple>(ElementTypes)) : nullptr));
}
@@ -152,7 +154,8 @@ LLVMMetadataRef LLVMDIBuilderCreateReplaceableCompositeType(
DIBuilder *D = unwrap(Dref);
return wrap(D->createReplaceableCompositeType(
Tag, Name, unwrap<DIScope>(Scope), File ? unwrap<DIFile>(File) : nullptr,
- Line, RuntimeLang, SizeInBits, AlignInBits, Flags));
+ Line, RuntimeLang, SizeInBits, AlignInBits,
+ static_cast<DINode::DIFlags>(Flags)));
}
LLVMMetadataRef
@@ -164,7 +167,8 @@ LLVMDIBuilderCreateMemberType(LLVMDIBuilderRef Dref, LLVMMetadataRef Scope,
DIBuilder *D = unwrap(Dref);
return wrap(D->createMemberType(
unwrap<DIScope>(Scope), Name, File ? unwrap<DIFile>(File) : nullptr, Line,
- SizeInBits, AlignInBits, OffsetInBits, Flags, unwrap<DIType>(Ty)));
+ SizeInBits, AlignInBits, OffsetInBits,
+ static_cast<DINode::DIFlags>(Flags), unwrap<DIType>(Ty)));
}
LLVMMetadataRef LLVMDIBuilderCreateArrayType(LLVMDIBuilderRef Dref,