From e8d9177a1533411eb53593c7a16cfa6c188952c9 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Thu, 4 Jun 2009 05:36:36 +0000 Subject: Use dyn_cast<> instead of dyn_ref_cast. git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@72847 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/klee/util/Ref.h | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'include') diff --git a/include/klee/util/Ref.h b/include/klee/util/Ref.h index d1c2e56b..61e91f3c 100644 --- a/include/klee/util/Ref.h +++ b/include/klee/util/Ref.h @@ -44,8 +44,6 @@ private: public: template friend class ref; - template friend U* dyn_ref_cast(ref &src); - template friend const U* dyn_ref_cast(const ref &src); // constructor from pointer ref(T *p) : ptr(p) { @@ -65,10 +63,6 @@ public: } // pointer operations - T *get () { - return ptr; - } - T *get () const { return ptr; } @@ -119,18 +113,6 @@ inline std::ostream &operator<<(std::ostream &os, const ref &e) { return os; } -class Expr; - -template -U* dyn_ref_cast(ref &src) { - return dyn_cast(src.ptr); -} - -template -const U* dyn_ref_cast(const ref &src) { - return dyn_cast(src.ptr); -} - } // end namespace klee namespace llvm { -- cgit 1.4.1