Skip to content

Commit 5347ffd

Browse files
committed
Remove unused functions
1 parent aa399bb commit 5347ffd

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

llvm/include/llvm/Analysis/WithCache.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,6 @@ template <typename Arg> class WithCache {
6060
WithCache(PointerType Pointer, const KnownBits &Known)
6161
: Pointer(Pointer, true), Known(Known) {}
6262

63-
template <typename T, std::enable_if_t<PointerConvertible<T>, int> = 0>
64-
WithCache(const T &Value) : Pointer(static_cast<PointerType>(Value), false) {}
65-
66-
template <typename T, std::enable_if_t<PointerConvertible<T>, int> = 0>
67-
WithCache(const T &Value, const KnownBits &Known)
68-
: Pointer(static_cast<PointerType>(Value), true), Known(Known) {}
69-
7063
[[nodiscard]] PointerType getValue() { return Pointer.getPointer(); }
7164
[[nodiscard]] PointerType getValue() const { return Pointer.getPointer(); }
7265

@@ -76,12 +69,6 @@ template <typename Arg> class WithCache {
7669
return Known;
7770
}
7871

79-
[[nodiscard]] KnownBits &getKnownBits(const SimplifyQuery &Q) {
80-
if (!hasKnownBits())
81-
calculateKnownBits(Q);
82-
return Known;
83-
}
84-
8572
[[nodiscard]] bool hasKnownBits() const { return Pointer.getInt(); }
8673

8774
operator PointerType() { return Pointer.getPointer(); }

0 commit comments

Comments
 (0)