Skip to content

Commit b863fcb

Browse files
authored
[OptBisect] Remove an unused method declaration. NFC (#71145)
The body of `OptBisect::checkPass()` was moved to `OptBisect::shouldRunPass()` in [D137149](https://reviews.llvm.org/D137149).
1 parent d3e7a48 commit b863fcb

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

llvm/include/llvm/IR/OptBisect.h

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,14 @@ class OptBisect : public OptPassGate {
5353

5454
/// Checks the bisect limit to determine if the specified pass should run.
5555
///
56-
/// This forwards to checkPass().
56+
/// The method prints the name of the pass, its assigned bisect number, and
57+
/// whether or not the pass will be executed. It returns true if the pass
58+
/// should run, i.e. if the bisect limit is set to -1 or has not yet been
59+
/// exceeded.
60+
///
61+
/// Most passes should not call this routine directly. Instead, it is called
62+
/// through helper routines provided by the base classes of the pass. For
63+
/// instance, function passes should call FunctionPass::skipFunction().
5764
bool shouldRunPass(const StringRef PassName,
5865
StringRef IRDescription) override;
5966

@@ -67,19 +74,6 @@ class OptBisect : public OptPassGate {
6774
LastBisectNum = 0;
6875
}
6976

70-
/// Checks the bisect limit to determine if the specified pass should run.
71-
///
72-
/// If the bisect limit is set to -1, the function prints a message describing
73-
/// the pass and the bisect number assigned to it and return true. Otherwise,
74-
/// the function prints a message with the bisect number assigned to the
75-
/// pass and indicating whether or not the pass will be run and return true if
76-
/// the bisect limit has not yet been exceeded or false if it has.
77-
///
78-
/// Most passes should not call this routine directly. Instead, they are
79-
/// called through helper routines provided by the pass base classes. For
80-
/// instance, function passes should call FunctionPass::skipFunction().
81-
bool checkPass(const StringRef PassName, const StringRef TargetDesc);
82-
8377
static const int Disabled = std::numeric_limits<int>::max();
8478

8579
private:

0 commit comments

Comments
 (0)