From 0b693fb1251bd39f123f9f88ac43d86152f29720 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 13 Oct 2001 06:30:39 +0000 Subject: [PATCH] not is a keyword in Ansi C++. Avoid it git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@748 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ConstantHandling.h | 4 ++-- lib/VMCore/ConstantFold.h | 4 ++-- lib/VMCore/ConstantFolding.h | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/llvm/ConstantHandling.h b/include/llvm/ConstantHandling.h index cbb9789fb0e..9ce1b2cb087 100644 --- a/include/llvm/ConstantHandling.h +++ b/include/llvm/ConstantHandling.h @@ -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); } diff --git a/lib/VMCore/ConstantFold.h b/lib/VMCore/ConstantFold.h index cbb9789fb0e..9ce1b2cb087 100644 --- a/lib/VMCore/ConstantFold.h +++ b/lib/VMCore/ConstantFold.h @@ -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); } diff --git a/lib/VMCore/ConstantFolding.h b/lib/VMCore/ConstantFolding.h index cbb9789fb0e..9ce1b2cb087 100644 --- a/lib/VMCore/ConstantFolding.h +++ b/lib/VMCore/ConstantFolding.h @@ -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); } -- 2.34.1