diff options
author | Devang Patel <dpatel@apple.com> | 2010-02-10 18:49:08 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-02-10 18:49:08 +0000 |
commit | 535fdaf0201487ce2e7b9a1c12643bdf55173b36 (patch) | |
tree | 1a85bf5c5e15eeb68ceec7e5a84d50f9ac79df57 /clang/lib/CodeGen/CGDebugInfo.h | |
parent | 925152c2d082cca731974ad278cbbe252fddfad7 (diff) | |
download | bcm5719-llvm-535fdaf0201487ce2e7b9a1c12643bdf55173b36.tar.gz bcm5719-llvm-535fdaf0201487ce2e7b9a1c12643bdf55173b36.zip |
Refactor code that generates debug info for variables that has BlocksAttr.
llvm-svn: 95786
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.h')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.h b/clang/lib/CodeGen/CGDebugInfo.h index c2bcc4bd122..b2d3a1f1fa5 100644 --- a/clang/lib/CodeGen/CGDebugInfo.h +++ b/clang/lib/CodeGen/CGDebugInfo.h @@ -175,6 +175,11 @@ private: void EmitDeclare(const BlockDeclRefExpr *BDRE, unsigned Tag, llvm::Value *AI, CGBuilderTy &Builder, CodeGenFunction *CGF); + // EmitTypeForVarWithBlocksAttr - Build up structure info for the byref. + // See BuildByRefType. + llvm::DIType EmitTypeForVarWithBlocksAttr(const ValueDecl *VD, + uint64_t *OffSet); + /// getContextDescriptor - Get context info for the decl. llvm::DIDescriptor getContextDescriptor(const Decl *Decl, llvm::DIDescriptor &CU); |