[llvm] r280711 - Fix for Bindings/Go/go.test after patch r280700
Leny Kholodov via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 6 08:03:54 PDT 2016
Author: lkholodov
Date: Tue Sep 6 10:03:54 2016
New Revision: 280711
URL: http://llvm.org/viewvc/llvm-project?rev=280711&view=rev
Log:
Fix for Bindings/Go/go.test after patch r280700
Modified:
llvm/trunk/bindings/go/llvm/DIBuilderBindings.cpp
Modified: llvm/trunk/bindings/go/llvm/DIBuilderBindings.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/bindings/go/llvm/DIBuilderBindings.cpp?rev=280711&r1=280710&r2=280711&view=diff
==============================================================================
--- llvm/trunk/bindings/go/llvm/DIBuilderBindings.cpp (original)
+++ llvm/trunk/bindings/go/llvm/DIBuilderBindings.cpp Tue Sep 6 10:03:54 2016
@@ -79,7 +79,8 @@ LLVMMetadataRef LLVMDIBuilderCreateFunct
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(LLVMDIBu
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 LLVMDIBuilderCreateParam
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 LLVMDIBuilderCreateStruc
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 LLVMDIBuilderCreateRepla
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(LLVMDIBuil
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,
More information about the llvm-commits
mailing list