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 {
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 (); }
You can’t perform that action at this time.
0 commit comments