File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed
llvm/include/llvm/Analysis Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -60,13 +60,6 @@ template <typename Arg> class WithCache {
60
60
WithCache (PointerType Pointer, const KnownBits &Known)
61
61
: Pointer(Pointer, true ), Known(Known) {}
62
62
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
-
70
63
[[nodiscard]] PointerType getValue () { return Pointer.getPointer (); }
71
64
[[nodiscard]] PointerType getValue () const { return Pointer.getPointer (); }
72
65
@@ -76,12 +69,6 @@ template <typename Arg> class WithCache {
76
69
return Known;
77
70
}
78
71
79
- [[nodiscard]] KnownBits &getKnownBits (const SimplifyQuery &Q) {
80
- if (!hasKnownBits ())
81
- calculateKnownBits (Q);
82
- return Known;
83
- }
84
-
85
72
[[nodiscard]] bool hasKnownBits () const { return Pointer.getInt (); }
86
73
87
74
operator PointerType () { return Pointer.getPointer (); }
You can’t perform that action at this time.
0 commit comments