ConstantFolder and NoFolder no longer require their Context members.
authorDan Gohman <gohman@apple.com>
Tue, 11 Aug 2009 15:56:12 +0000 (15:56 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 11 Aug 2009 15:56:12 +0000 (15:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78673 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/ConstantFolder.h
include/llvm/Support/NoFolder.h

index dfcf012b71fd64a25eb61dbf1efeef2c1585d6d0..cb9b05558477d1ec974d4c2f7c67892497ca9fae 100644 (file)
 #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
index 6c9ac450d4aa6c0edbc9a279cca0371fb98158ba..e0fb9cdb3f594e55f4cd2b1fdf170a01faf1eb38 100644 (file)
 
 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