diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-03-26 23:46:39 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-03-26 23:46:39 +0000 |
commit | ca442a4a1aabf6199e5aee09ec604e79916d9b92 (patch) | |
tree | 4b87f33185b9e4255d4da2448f8d66fc80f2e19b /include | |
parent | f34ea642e6402538f217db67a734a8530a36eed0 (diff) | |
download | external_llvm-ca442a4a1aabf6199e5aee09ec604e79916d9b92.zip external_llvm-ca442a4a1aabf6199e5aee09ec604e79916d9b92.tar.gz external_llvm-ca442a4a1aabf6199e5aee09ec604e79916d9b92.tar.bz2 |
Make DIBuilder::createClassType more type safe by returning DICompositeType rather than DIType
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178091 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/DIBuilder.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/llvm/DIBuilder.h b/include/llvm/DIBuilder.h index de6c38f..4f0aa07 100644 --- a/include/llvm/DIBuilder.h +++ b/include/llvm/DIBuilder.h @@ -265,12 +265,13 @@ namespace llvm { /// DW_AT_containing_type. See DWARF documentation /// for more info. /// @param TemplateParms Template type parameters. - DIType createClassType(DIDescriptor Scope, StringRef Name, DIFile File, - unsigned LineNumber, uint64_t SizeInBits, - uint64_t AlignInBits, uint64_t OffsetInBits, - unsigned Flags, DIType DerivedFrom, - DIArray Elements, MDNode *VTableHolder = 0, - MDNode *TemplateParms = 0); + DICompositeType createClassType(DIDescriptor Scope, StringRef Name, + DIFile File, unsigned LineNumber, + uint64_t SizeInBits, uint64_t AlignInBits, + uint64_t OffsetInBits, unsigned Flags, + DIType DerivedFrom, DIArray Elements, + MDNode *VTableHolder = 0, + MDNode *TemplateParms = 0); /// createStructType - Create debugging information entry for a struct. /// @param Scope Scope in which this struct is defined. |