This is an archive of the discontinued LLVM Phabricator instance.

[DebugInfo][NFC] Move out lambdas from collectCallSiteParameters()
ClosedPublic

Authored by dstenb on Feb 24 2020, 7:15 AM.

Details

Summary

This is a preparatory patch for D75036, in which a debug expression is
associated with each parameter register in the worklist. In that patch
the two lambda functions addToWorklist() and finishCallSiteParams() grow
a bit, so move those out to separate functions. This patch also prepares
for each parameter register having their own expression moving the
creation of the DbgValueLoc into finishCallSiteParams().

Diff Detail

Event Timeline

dstenb created this revision.Feb 24 2020, 7:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 24 2020, 7:15 AM
djtodoro accepted this revision.Feb 24 2020, 11:52 PM

Thanks!

This revision is now accepted and ready to land.Feb 24 2020, 11:52 PM
vsk accepted this revision.Feb 26 2020, 8:43 AM
dstenb updated this revision to Diff 246773.Feb 26 2020, 9:48 AM

Update after review comment on child patch (use local reference variable for I.first->second).

dstenb set the repository for this revision to rG LLVM Github Monorepo.Feb 27 2020, 5:37 AM
dstenb closed this revision.Feb 27 2020, 5:54 AM

Oh, it seems that I missed to specify the repository for this patch. This was pushed as:

commit ff574ff291e73b78164aade9d456d364bbf93a03
Author: David Stenberg <david.stenberg@ericsson.com>
Date:   Thu Feb 27 09:53:31 2020 +0100

    [DebugInfo][NFC] Move out lambdas from collectCallSiteParameters()
    
    Summary:
    This is a preparatory patch for D75036, in which a debug expression is
    associated with each parameter register in the worklist. In that patch
    the two lambda functions addToWorklist() and finishCallSiteParams() grow
    a bit, so move those out to separate functions. This patch also prepares
    for each parameter register having their own expression moving the
    creation of the DbgValueLoc into finishCallSiteParams().
    
    Reviewers: djtodoro, vsk
    
    Reviewed By: djtodoro, vsk
    
    Subscribers: hiraditya, llvm-commits
    
    Tags: #debug-info, #llvm
    
    Differential Revision: https://reviews.llvm.org/D75050