aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/ConstantFold.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-07-08 04:57:15 +0000
committerChris Lattner <sabre@nondot.org>2001-07-08 04:57:15 +0000
commit0908309e3c4b4f423e88d8d8fe8060cb10eaa1c9 (patch)
treedcdecdda0cd3e1168527d832f3824e0c94b3ef60 /lib/VMCore/ConstantFold.h
parentf22696f209701bff12edbe41c646d1ef179c685d (diff)
downloadexternal_llvm-0908309e3c4b4f423e88d8d8fe8060cb10eaa1c9.zip
external_llvm-0908309e3c4b4f423e88d8d8fe8060cb10eaa1c9.tar.gz
external_llvm-0908309e3c4b4f423e88d8d8fe8060cb10eaa1c9.tar.bz2
Neg instruction removed. Cast instruction implemented.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/ConstantFold.h')
-rw-r--r--lib/VMCore/ConstantFold.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/VMCore/ConstantFold.h b/lib/VMCore/ConstantFold.h
index cf18ef8..79dd21c 100644
--- a/lib/VMCore/ConstantFold.h
+++ b/lib/VMCore/ConstantFold.h
@@ -60,7 +60,6 @@ protected:
inline ConstRules() {} // Can only be subclassed...
public:
// Unary Operators...
- virtual ConstPoolVal *neg(const ConstPoolVal *V) const = 0;
virtual ConstPoolVal *not(const ConstPoolVal *V) const = 0;
// Binary Operators...
@@ -88,10 +87,6 @@ private :
};
-inline ConstPoolVal *operator-(const ConstPoolVal &V) {
- return ConstRules::get(V)->neg(&V);
-}
-
inline ConstPoolVal *operator!(const ConstPoolVal &V) {
return ConstRules::get(V)->not(&V);
}
@@ -154,7 +149,6 @@ inline ConstPoolVal *ConstantFoldUnaryInstruction(unsigned Opcode,
ConstPoolVal *V) {
switch (Opcode) {
case Instruction::Not: return !*V;
- case Instruction::Neg: return -*V;
}
return 0;
}