diff options
author | Dan Gohman <gohman@apple.com> | 2009-08-11 15:56:12 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-08-11 15:56:12 +0000 |
commit | 7f4151bc69e02a22862752742ad1cb637d90ded0 (patch) | |
tree | d79cd7129d11c14f5fcb51b6fa03d49dacf4fca6 /include | |
parent | d3fe75e2bf9644fec41ac1185e07229f8715700f (diff) | |
download | llvm-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')
-rw-r--r-- | include/llvm/Support/ConstantFolder.h | 9 | ||||
-rw-r--r-- | include/llvm/Support/NoFolder.h | 6 |
2 files changed, 7 insertions, 8 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 diff --git a/include/llvm/Support/NoFolder.h b/include/llvm/Support/NoFolder.h index 6c9ac450d4..e0fb9cdb3f 100644 --- a/include/llvm/Support/NoFolder.h +++ b/include/llvm/Support/NoFolder.h @@ -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 |