[llvm] cd28a47 - [AbstractCallSite] Fix some doxygen comments I failed to update when ImmutableCallSite was replaced with CallBase.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 17 17:08:54 PDT 2020
Author: Craig Topper
Date: 2020-04-17T17:08:28-07:00
New Revision: cd28a4736ab299f81a6bc74e8f22fb6d2b9375ed
URL: https://github.com/llvm/llvm-project/commit/cd28a4736ab299f81a6bc74e8f22fb6d2b9375ed
DIFF: https://github.com/llvm/llvm-project/commit/cd28a4736ab299f81a6bc74e8f22fb6d2b9375ed.diff
LOG: [AbstractCallSite] Fix some doxygen comments I failed to update when ImmutableCallSite was replaced with CallBase.
Also fix an 80 column violation.
Added:
Modified:
llvm/include/llvm/IR/CallSite.h
llvm/lib/IR/AbstractCallSite.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/IR/CallSite.h b/llvm/include/llvm/IR/CallSite.h
index d3d644e44834..ea224e59a4a7 100644
--- a/llvm/include/llvm/IR/CallSite.h
+++ b/llvm/include/llvm/IR/CallSite.h
@@ -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);
diff --git a/llvm/lib/IR/AbstractCallSite.cpp b/llvm/lib/IR/AbstractCallSite.cpp
index 0354e7d5305c..ab5551a8ea39 100644
--- a/llvm/lib/IR/AbstractCallSite.cpp
+++ b/llvm/lib/IR/AbstractCallSite.cpp
@@ -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;
More information about the llvm-commits
mailing list