[llvm-commits] [llvm] r78673 - in /llvm/trunk/include/llvm/Support: ConstantFolder.h NoFolder.h

Dan Gohman gohman at apple.com
Tue Aug 11 08:56:12 PDT 2009


Author: djg
Date: Tue Aug 11 10:56:12 2009
New Revision: 78673

URL: http://llvm.org/viewvc/llvm-project?rev=78673&view=rev
Log:
ConstantFolder and NoFolder no longer require their Context members.

Modified:
    llvm/trunk/include/llvm/Support/ConstantFolder.h
    llvm/trunk/include/llvm/Support/NoFolder.h

Modified: llvm/trunk/include/llvm/Support/ConstantFolder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/ConstantFolder.h?rev=78673&r1=78672&r2=78673&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Support/ConstantFolder.h (original)
+++ llvm/trunk/include/llvm/Support/ConstantFolder.h Tue Aug 11 10:56:12 2009
@@ -18,16 +18,15 @@
 #define LLVM_SUPPORT_CONSTANTFOLDER_H
 
 #include "llvm/Constants.h"
-#include "llvm/LLVMContext.h"
 
 namespace llvm {
-  
+
+class LLVMContext;
+
 /// ConstantFolder - Create constants with minimum, target independent, folding.
 class ConstantFolder {
-  LLVMContext &Context;
-  
 public:
-  ConstantFolder(LLVMContext &C) : Context(C) { }
+  explicit ConstantFolder(LLVMContext &) {}
 
   //===--------------------------------------------------------------------===//
   // Binary Operators

Modified: llvm/trunk/include/llvm/Support/NoFolder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/NoFolder.h?rev=78673&r1=78672&r2=78673&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Support/NoFolder.h (original)
+++ llvm/trunk/include/llvm/Support/NoFolder.h Tue Aug 11 10:56:12 2009
@@ -28,12 +28,12 @@
 
 namespace llvm {
 
+class LLVMContext;
+
 /// NoFolder - Create "constants" (actually, values) with no folding.
 class NoFolder {
-  LLVMContext &Context;
 public:
-  
-  NoFolder(LLVMContext &C) : Context(C) { }
+  explicit NoFolder(LLVMContext &) {}
 
   //===--------------------------------------------------------------------===//
   // Binary Operators





More information about the llvm-commits mailing list