summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/ConstantHandling.cpp
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
commita682182f6485caf4f2bb23d2fe7f2e1d10d9fb2a (patch)
treeac566bc85cd22b41c0f530d82937408cd7c5e79a /llvm/lib/VMCore/ConstantHandling.cpp
parent52112fb34e6846c33208bab143b7815eefcb0421 (diff)
downloadbcm5719-llvm-a682182f6485caf4f2bb23d2fe7f2e1d10d9fb2a.tar.gz
bcm5719-llvm-a682182f6485caf4f2bb23d2fe7f2e1d10d9fb2a.zip
Neg instruction removed. Cast instruction implemented.
llvm-svn: 156
Diffstat (limited to 'llvm/lib/VMCore/ConstantHandling.cpp')
-rw-r--r--llvm/lib/VMCore/ConstantHandling.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/lib/VMCore/ConstantHandling.cpp b/llvm/lib/VMCore/ConstantHandling.cpp
index 54a79804818..e0a4ffbfb05 100644
--- a/llvm/lib/VMCore/ConstantHandling.cpp
+++ b/llvm/lib/VMCore/ConstantHandling.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());;
}
OpenPOWER on IntegriCloud