From d372889eabcd10a9d8ce8fe9a4b2678d3a51d823 Mon Sep 17 00:00:00 2001 From: Manman Ren Date: Sun, 8 Sep 2013 04:07:59 +0000 Subject: [PATCH] Debug Info: pass in DIScope instead of DIDescriptor in createMemberType. Improve readability. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190269 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/DIBuilder.h | 2 +- lib/IR/DIBuilder.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/llvm/DIBuilder.h b/include/llvm/DIBuilder.h index 39ff317a748..00fcdabc791 100644 --- a/include/llvm/DIBuilder.h +++ b/include/llvm/DIBuilder.h @@ -191,7 +191,7 @@ namespace llvm { /// @param Flags Flags to encode member attribute, e.g. private /// @param Ty Parent type. DIDerivedType - createMemberType(DIDescriptor Scope, StringRef Name, DIFile File, + createMemberType(DIScope Scope, StringRef Name, DIFile File, unsigned LineNo, uint64_t SizeInBits, uint64_t AlignInBits, uint64_t OffsetInBits, unsigned Flags, DIType Ty); diff --git a/lib/IR/DIBuilder.cpp b/lib/IR/DIBuilder.cpp index 7ac37f45b1a..0c91b126936 100644 --- a/lib/IR/DIBuilder.cpp +++ b/lib/IR/DIBuilder.cpp @@ -410,7 +410,7 @@ DIDerivedType DIBuilder::createInheritance( /// createMemberType - Create debugging information entry for a member. DIDerivedType DIBuilder::createMemberType( - DIDescriptor Scope, StringRef Name, DIFile File, unsigned LineNumber, + DIScope Scope, StringRef Name, DIFile File, unsigned LineNumber, uint64_t SizeInBits, uint64_t AlignInBits, uint64_t OffsetInBits, unsigned Flags, DIType Ty) { // TAG_member is encoded in DIDerivedType format. -- 2.34.1