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 /lib/VMCore/ConstantFold.cpp | |
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 'lib/VMCore/ConstantFold.cpp')
-rw-r--r-- | lib/VMCore/ConstantFold.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/VMCore/ConstantFold.cpp b/lib/VMCore/ConstantFold.cpp index 54a7980..e0a4ffb 100644 --- a/lib/VMCore/ConstantFold.cpp +++ b/lib/VMCore/ConstantFold.cpp @@ -27,10 +27,6 @@ class TemplateRules : public ConstRules { // Redirecting functions that cast to the appropriate types //===--------------------------------------------------------------------===// - virtual ConstPoolVal *neg(const ConstPoolVal *V) const { - return SubClassName::Neg((const ArgType *)V); - } - virtual ConstPoolVal *not(const ConstPoolVal *V) const { return SubClassName::Not((const ArgType *)V); } @@ -55,7 +51,6 @@ class TemplateRules : public ConstRules { // Default "noop" implementations //===--------------------------------------------------------------------===// - inline static ConstPoolVal *Neg(const ArgType *V) { return 0; } inline static ConstPoolVal *Not(const ArgType *V) { return 0; } inline static ConstPoolVal *Add(const ArgType *V1, const ArgType *V2) { @@ -125,9 +120,6 @@ struct DirectRules : public TemplateRules<ConstPoolClass, DirectRules<ConstPoolClass, BuiltinType, Ty> > { - inline static ConstPoolVal *Neg(const ConstPoolClass *V) { - return new ConstPoolClass(*Ty, -(BuiltinType)V->getValue());; - } inline static ConstPoolVal *Not(const ConstPoolClass *V) { return new ConstPoolClass(*Ty, !(BuiltinType)V->getValue());; } |