aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Constants.h
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-07-17 23:26:57 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-07-17 23:26:57 +0000
commit355b0d88cbcc9690a6ecce1040e46e5adb956d58 (patch)
tree341e4286681b7bc298d95f66cb2f21fbea0ce364 /include/llvm/Constants.h
parente2643aa9dff62595b30b32ca0f0aadfd2182de1e (diff)
downloadexternal_llvm-355b0d88cbcc9690a6ecce1040e46e5adb956d58.zip
external_llvm-355b0d88cbcc9690a6ecce1040e46e5adb956d58.tar.gz
external_llvm-355b0d88cbcc9690a6ecce1040e46e5adb956d58.tar.bz2
****** ABOLISH ConstantPointerRef *****
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14919 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Constants.h')
-rw-r--r--include/llvm/Constants.h38
1 files changed, 0 insertions, 38 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h
index 324f506..0fc8989 100644
--- a/include/llvm/Constants.h
+++ b/include/llvm/Constants.h
@@ -465,44 +465,6 @@ public:
};
-//===---------------------------------------------------------------------------
-/// ConstantPointerRef - a constant pointer value that is initialized to
-/// point to a global value, which lies at a constant, fixed address.
-///
-class ConstantPointerRef : public Constant {
- friend class Module; // Modules maintain these references
- ConstantPointerRef(const ConstantPointerRef &); // DNI!
-
-protected:
- ConstantPointerRef(GlobalValue *GV);
-public:
- /// get() - Static factory methods - Return objects of the specified value
- static ConstantPointerRef *get(GlobalValue *GV);
-
- const GlobalValue *getValue() const {
- return cast<GlobalValue>(Operands[0].get());
- }
-
- GlobalValue *getValue() {
- return cast<GlobalValue>(Operands[0].get());
- }
-
- /// isNullValue - Return true if this is the value that would be returned by
- /// getNullValue.
- virtual bool isNullValue() const { return false; }
-
- virtual void destroyConstant();
- virtual void replaceUsesOfWithOnConstant(Value *From, Value *To,
- bool DisableChecking = false);
-
- /// Methods for support type inquiry through isa, cast, and dyn_cast:
- static inline bool classof(const ConstantPointerRef *) { return true; }
- static bool classof(const Constant *CPV);
- static inline bool classof(const Value *V) {
- return isa<Constant>(V) && classof(cast<Constant>(V));
- }
-};
-
// ConstantExpr - a constant value that is initialized with an expression using
// other constant values. This is only used to represent values that cannot be
// evaluated at compile-time (e.g., something derived from an address) because