diff options
author | Mike Stump <mrs@apple.com> | 2009-10-02 02:23:37 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-10-02 02:23:37 +0000 |
commit | 440af3d903b80791ef9d7c29d6070cc1c34347b6 (patch) | |
tree | 3e2db9b82e031241fbca595c34faa6f591644dcd /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | 39e3eb12ae7a7827faf64c5fe3be49f6ec9644a0 (diff) | |
download | bcm5719-llvm-440af3d903b80791ef9d7c29d6070cc1c34347b6.tar.gz bcm5719-llvm-440af3d903b80791ef9d7c29d6070cc1c34347b6.zip |
Fix up debug information for block pointers a bit more.
llvm-svn: 83231
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 0b386841f19..c937e8ec67e 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -350,8 +350,10 @@ llvm::DIType CGDebugInfo::CreateType(const BlockPointerType *Ty, FieldOffset += FieldSize; Elements = DebugFactory.GetOrCreateArray(EltTys.data(), EltTys.size()); + unsigned Flags = llvm::DIType::FlagAppleBlock; + EltTy = DebugFactory.CreateCompositeType(Tag, Unit, "__block_literal_generic", - DefUnit, 0, FieldOffset, 0, 0, 0, + DefUnit, 0, FieldOffset, 0, 0, Flags, llvm::DIType(), Elements); BlockLiteralGenericSet = true; |