[PATCH] D45175: Fix header mismatch in DIBuilder Type APIs
Harlan Haskins via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 2 12:10:47 PDT 2018
harlanhaskins created this revision.
harlanhaskins added a reviewer: echristo.
Herald added a subscriber: llvm-commits.
Some of the headers changed slightly, and the accompanying
implementation didn't change. This caused a silent failure.
Repository:
rL LLVM
https://reviews.llvm.org/D45175
Files:
lib/IR/DebugInfo.cpp
Index: lib/IR/DebugInfo.cpp
===================================================================
--- lib/IR/DebugInfo.cpp
+++ lib/IR/DebugInfo.cpp
@@ -846,8 +846,8 @@
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 @@
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,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45175.140658.patch
Type: text/x-patch
Size: 1547 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180402/c9c86caf/attachment.bin>
More information about the llvm-commits
mailing list