Skip to content

Commit

Permalink
[AbstractCallSite] Fix some doxygen comments I failed to update when …
Browse files Browse the repository at this point in the history
…ImmutableCallSite was replaced with CallBase.

Also fix an 80 column violation.
  • Loading branch information
topperc committed Apr 18, 2020
1 parent f463792 commit cd28a47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions llvm/include/llvm/IR/CallSite.h
Expand Up @@ -798,10 +798,11 @@ class AbstractCallSite {
/// as well as the callee of the abstract call site.
AbstractCallSite(const Use *U);

/// Add operand uses of \p ICS that represent callback uses into \p CBUses.
/// Add operand uses of \p CB that represent callback uses into
/// \p CallbackUses.
///
/// All uses added to \p CBUses can be used to create abstract call sites for
/// which AbstractCallSite::isCallbackCall() will return true.
/// All uses added to \p CallbackUses can be used to create abstract call
/// sites for which AbstractCallSite::isCallbackCall() will return true.
static void getCallbackUses(const CallBase &CB,
SmallVectorImpl<const Use *> &CallbackUses);

Expand Down
4 changes: 2 additions & 2 deletions llvm/lib/IR/AbstractCallSite.cpp
Expand Up @@ -33,8 +33,8 @@ STATISTIC(NumInvalidAbstractCallSitesUnknownCallee,
STATISTIC(NumInvalidAbstractCallSitesNoCallback,
"Number of invalid abstract call sites created (no callback)");

void AbstractCallSite::getCallbackUses(const CallBase &CB,
SmallVectorImpl<const Use *> &CallbackUses) {
void AbstractCallSite::getCallbackUses(
const CallBase &CB, SmallVectorImpl<const Use *> &CallbackUses) {
const Function *Callee = CB.getCalledFunction();
if (!Callee)
return;
Expand Down

0 comments on commit cd28a47

Please sign in to comment.