summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python/interface/SBSourceManager.i
diff options
context:
space:
mode:
authorFrederic Riss <friss@apple.com>2014-11-18 03:40:51 +0000
committerFrederic Riss <friss@apple.com>2014-11-18 03:40:51 +0000
commitd253ed6565dff2415d4cd923b80ee82ca6ee5534 (patch)
tree9319e5ff10063c87897dc8ebaaafaf71994a0227 /lldb/scripts/Python/interface/SBSourceManager.i
parent9db79f17c09c6f73f2595c4a8adf312c4c769f57 (diff)
downloadbcm5719-llvm-d253ed6565dff2415d4cd923b80ee82ca6ee5534.tar.gz
bcm5719-llvm-d253ed6565dff2415d4cd923b80ee82ca6ee5534.zip
Fully handle globals and functions in CGDebugInfo::getDeclarationOrDefinition()
Currently this function would return nothing for functions or globals that haven't seen a definition yet. Make it return a forward declaration that will get RAUWed with the definition if one is seen at a later point. The strategy used to implement this is similar to what's done for types: the forward declarations are stored in a vector and post processed upon finilization to perform the required RAUWs. For now the only user of getDeclarationOrDefinition() is EmitUsingDecl(), thus this patch allows to emit correct imported declarations even in the absence of an actual definition of the imported entity. (Another user will be the debug info generation for argument default values that I need to resurect). Differential Revision: http://reviews.llvm.org/D6173 llvm-svn: 222220
Diffstat (limited to 'lldb/scripts/Python/interface/SBSourceManager.i')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud