diff options
author | David Blaikie <dblaikie@gmail.com> | 2016-12-27 22:05:35 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2016-12-27 22:05:35 +0000 |
commit | deeca6de08ff517ecc4db90598d67e23c930302f (patch) | |
tree | c56772ed8b3a79684d43a8100552d5072345e376 /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | 5cc08f865bc105ec7dc89321fa383b17bd5238ff (diff) | |
download | bcm5719-llvm-deeca6de08ff517ecc4db90598d67e23c930302f.tar.gz bcm5719-llvm-deeca6de08ff517ecc4db90598d67e23c930302f.zip |
DebugInfo: Don't include size/alignment on class declarations
This seems like it must've been a leftover by accident - no tests were
backing it up & it doesn't make much sense to include size/alignment on
class declarations (it'd only be on those declarations for which the
definition was available - otherwise the size/alignment would not be
known).
llvm-svn: 290631
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 2013825d33c..12a68036b09 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -775,12 +775,6 @@ CGDebugInfo::getOrCreateRecordFwdDecl(const RecordType *Ty, uint64_t Size = 0; uint32_t Align = 0; - const RecordDecl *D = RD->getDefinition(); - if (D && D->isCompleteDefinition()) { - Size = CGM.getContext().getTypeSize(Ty); - Align = getDeclAlignIfRequired(D, CGM.getContext()); - } - // Create the type. SmallString<256> FullName = getUniqueTagTypeName(Ty, CGM, TheCU); llvm::DICompositeType *RetTy = DBuilder.createReplaceableCompositeType( |