not is a keyword in Ansi C++. Avoid it
authorChris Lattner <sabre@nondot.org>
Sat, 13 Oct 2001 06:30:39 +0000 (06:30 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 13 Oct 2001 06:30:39 +0000 (06:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@748 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ConstantHandling.h
lib/VMCore/ConstantFold.h
lib/VMCore/ConstantFolding.h

index cbb9789fb0ea11a1819ae992b53e6eeeedde87c9..9ce1b2cb0871e502ddc110ce59ae4415bcae376d 100644 (file)
@@ -65,7 +65,7 @@ public:
   static AnnotationID AID;    // AnnotationID for this class
 
   // Unary Operators...
-  virtual ConstPoolVal *not(const ConstPoolVal *V) const = 0;
+  virtual ConstPoolVal *op_not(const ConstPoolVal *V) const = 0;
 
   // Binary Operators...
   virtual ConstPoolVal *add(const ConstPoolVal *V1, 
@@ -124,7 +124,7 @@ private :
 
 
 inline ConstPoolVal *operator!(const ConstPoolVal &V) {
-  return ConstRules::get(V)->not(&V);
+  return ConstRules::get(V)->op_not(&V);
 }
 
 
index cbb9789fb0ea11a1819ae992b53e6eeeedde87c9..9ce1b2cb0871e502ddc110ce59ae4415bcae376d 100644 (file)
@@ -65,7 +65,7 @@ public:
   static AnnotationID AID;    // AnnotationID for this class
 
   // Unary Operators...
-  virtual ConstPoolVal *not(const ConstPoolVal *V) const = 0;
+  virtual ConstPoolVal *op_not(const ConstPoolVal *V) const = 0;
 
   // Binary Operators...
   virtual ConstPoolVal *add(const ConstPoolVal *V1, 
@@ -124,7 +124,7 @@ private :
 
 
 inline ConstPoolVal *operator!(const ConstPoolVal &V) {
-  return ConstRules::get(V)->not(&V);
+  return ConstRules::get(V)->op_not(&V);
 }
 
 
index cbb9789fb0ea11a1819ae992b53e6eeeedde87c9..9ce1b2cb0871e502ddc110ce59ae4415bcae376d 100644 (file)
@@ -65,7 +65,7 @@ public:
   static AnnotationID AID;    // AnnotationID for this class
 
   // Unary Operators...
-  virtual ConstPoolVal *not(const ConstPoolVal *V) const = 0;
+  virtual ConstPoolVal *op_not(const ConstPoolVal *V) const = 0;
 
   // Binary Operators...
   virtual ConstPoolVal *add(const ConstPoolVal *V1, 
@@ -124,7 +124,7 @@ private :
 
 
 inline ConstPoolVal *operator!(const ConstPoolVal &V) {
-  return ConstRules::get(V)->not(&V);
+  return ConstRules::get(V)->op_not(&V);
 }