summaryrefslogtreecommitdiff
path: root/include/llvm/Support/ConstantFolder.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-08-11 15:56:12 +0000
committerDan Gohman <gohman@apple.com>2009-08-11 15:56:12 +0000
commit7f4151bc69e02a22862752742ad1cb637d90ded0 (patch)
treed79cd7129d11c14f5fcb51b6fa03d49dacf4fca6 /include/llvm/Support/ConstantFolder.h
parentd3fe75e2bf9644fec41ac1185e07229f8715700f (diff)
downloadllvm-7f4151bc69e02a22862752742ad1cb637d90ded0.tar.gz
llvm-7f4151bc69e02a22862752742ad1cb637d90ded0.tar.bz2
llvm-7f4151bc69e02a22862752742ad1cb637d90ded0.tar.xz
ConstantFolder and NoFolder no longer require their Context members.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78673 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/ConstantFolder.h')
-rw-r--r--include/llvm/Support/ConstantFolder.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/llvm/Support/ConstantFolder.h b/include/llvm/Support/ConstantFolder.h
index dfcf012b71..cb9b055584 100644
--- a/include/llvm/Support/ConstantFolder.h
+++ b/include/llvm/Support/ConstantFolder.h
@@ -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