diff options
author | Chris Lattner <sabre@nondot.org> | 2001-07-08 04:57:15 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-07-08 04:57:15 +0000 |
commit | 0908309e3c4b4f423e88d8d8fe8060cb10eaa1c9 (patch) | |
tree | dcdecdda0cd3e1168527d832f3824e0c94b3ef60 /include/llvm/ConstantHandling.h | |
parent | f22696f209701bff12edbe41c646d1ef179c685d (diff) | |
download | external_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 'include/llvm/ConstantHandling.h')
-rw-r--r-- | include/llvm/ConstantHandling.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/llvm/ConstantHandling.h b/include/llvm/ConstantHandling.h index cf18ef8..79dd21c 100644 --- a/include/llvm/ConstantHandling.h +++ b/include/llvm/ConstantHandling.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; } |