summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.h
diff options
context:
space:
mode:
authorFrederic Riss <friss@apple.com>2014-11-18 03:40:46 +0000
committerFrederic Riss <friss@apple.com>2014-11-18 03:40:46 +0000
commit9db79f17c09c6f73f2595c4a8adf312c4c769f57 (patch)
tree8a876b52532e02029cf079edd2783dff37842682 /clang/lib/CodeGen/CGDebugInfo.h
parent471d4f894ba5ed75d8b9ea80aa395875afa92610 (diff)
downloadbcm5719-llvm-9db79f17c09c6f73f2595c4a8adf312c4c769f57.tar.gz
bcm5719-llvm-9db79f17c09c6f73f2595c4a8adf312c4c769f57.zip
[DebugInfo] Move collection of various function/var decl properties into helper functions.
NFC. Helpers to be re-used in upcoming commit. llvm-svn: 222219
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.h')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.h b/clang/lib/CodeGen/CGDebugInfo.h
index e8b6ca91e2f..896c54f13fd 100644
--- a/clang/lib/CodeGen/CGDebugInfo.h
+++ b/clang/lib/CodeGen/CGDebugInfo.h
@@ -411,6 +411,21 @@ private:
/// \param Force Assume DebugColumnInfo option is true.
unsigned getColumnNumber(SourceLocation Loc, bool Force=false);
+ /// \brief Collect various properties of a FunctionDecl.
+ /// \param GD A GlobalDecl whose getDecl() must return a FunctionDecl.
+ void collectFunctionDeclProps(GlobalDecl GD,
+ llvm::DIFile Unit,
+ StringRef &Name, StringRef &LinkageName,
+ llvm::DIDescriptor &FDContext,
+ llvm::DIArray &TParamsArray,
+ unsigned &Flags);
+
+ /// \brief Collect various properties of a VarDecl.
+ void collectVarDeclProps(const VarDecl *VD, llvm::DIFile &Unit,
+ unsigned &LineNo, QualType &T,
+ StringRef &Name, StringRef &LinkageName,
+ llvm::DIDescriptor &VDContext);
+
/// internString - Allocate a copy of \p A using the DebugInfoNames allocator
/// and return a reference to it. If multiple arguments are given the strings
/// are concatenated.
OpenPOWER on IntegriCloud