This is an archive of the discontinued LLVM Phabricator instance.

[CallGraph] Use decltype instead of pointer_to_unary_function. NFC.
ClosedPublic

Authored by timshen on Aug 19 2016, 2:51 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

timshen updated this revision to Diff 68732.Aug 19 2016, 2:51 PM
timshen retitled this revision from to [CallGraph] Use decltype instead of pointer_to_unary_function. NFC..
timshen updated this object.
timshen added a reviewer: dblaikie.
timshen added a subscriber: llvm-commits.
dblaikie accepted this revision.Aug 19 2016, 2:56 PM
dblaikie edited edge metadata.

Consistent names might be nice

include/llvm/Analysis/CallGraph.h
440 ↗(On Diff #68732)

Two are called CGNGetValue and two are called CGGetValuePtr - any particular reason for the variety?

This revision is now accepted and ready to land.Aug 19 2016, 2:56 PM
timshen added inline comments.Aug 19 2016, 2:59 PM
include/llvm/Analysis/CallGraph.h
440 ↗(On Diff #68732)

CGGetValuePtr calls unique_ptr::get() - it's like get the unique_ptr value, then get the (raw) ptr from the unique_ptr.

This revision was automatically updated to reflect the committed changes.