[llvm] r329003 - Fix header mismatch in DIBuilder Type APIs
Harlan Haskins via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 2 12:11:45 PDT 2018
Author: harlanhaskins
Date: Mon Apr 2 12:11:44 2018
New Revision: 329003
URL: http://llvm.org/viewvc/llvm-project?rev=329003&view=rev
Log:
Fix header mismatch in DIBuilder Type APIs
Some of the headers changed slightly, and the accompanying
implementation didn't change. This caused a silent failure.
Modified:
llvm/trunk/lib/IR/DebugInfo.cpp
Modified: llvm/trunk/lib/IR/DebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/DebugInfo.cpp?rev=329003&r1=329002&r2=329003&view=diff
==============================================================================
--- llvm/trunk/lib/IR/DebugInfo.cpp (original)
+++ llvm/trunk/lib/IR/DebugInfo.cpp Mon Apr 2 12:11:44 2018
@@ -846,8 +846,8 @@ LLVMMetadataRef LLVMDIBuilderCreateStruc
LLVMMetadataRef LLVMDIBuilderCreateMemberType(
LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name,
- size_t NameLen, LLVMMetadataRef File, unsigned LineNo, uint64_t SizeInBits,
- uint32_t AlignInBits, uint64_t OffsetInBits, LLVMDIFlags Flags,
+ size_t NameLen, LLVMMetadataRef File, unsigned LineNo, unsigned SizeInBits,
+ unsigned AlignInBits, unsigned OffsetInBits, LLVMDIFlags Flags,
LLVMMetadataRef Ty) {
return wrap(unwrap(Builder)->createMemberType(unwrapDI<DIScope>(Scope),
{Name, NameLen}, unwrapDI<DIFile>(File), LineNo, SizeInBits, AlignInBits,
@@ -881,11 +881,11 @@ LLVMDIBuilderCreateObjectPointerType(LLV
LLVMMetadataRef
LLVMDIBuilderCreateReplaceableCompositeType(
- LLVMDIBuilderRef Builder, unsigned Tag, const char *Name, size_t NameLen,
- LLVMMetadataRef Scope, LLVMMetadataRef File, unsigned Line,
+ LLVMDIBuilderRef Builder, unsigned Tag, const char *Name,
+ size_t NameLen, LLVMMetadataRef Scope, LLVMMetadataRef File, unsigned Line,
unsigned RuntimeLang, unsigned SizeInBits, unsigned AlignInBits,
LLVMDIFlags Flags, const char *UniqueIdentifier,
- unsigned UniqueIdentifierLen) {
+ size_t UniqueIdentifierLen) {
return wrap(unwrap(Builder)->createReplaceableCompositeType(
Tag, {Name, NameLen}, unwrapDI<DIScope>(Scope),
unwrapDI<DIFile>(File), Line, RuntimeLang, SizeInBits,
More information about the llvm-commits
mailing list