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 | f5adff9c419aa5cf0ad7bf3ddefb78437b1ba44a (patch) | |
| tree | 8b9c2e010557e5e008ee3772bc2add3679761532 /llvm | |
| parent | 0c533d909ab47d7939a7bec4267fe1a44703d68a (diff) | |
| download | bcm5719-llvm-f5adff9c419aa5cf0ad7bf3ddefb78437b1ba44a.tar.gz bcm5719-llvm-f5adff9c419aa5cf0ad7bf3ddefb78437b1ba44a.zip | |
ConstantFolder and NoFolder no longer require their Context members.
llvm-svn: 78673
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/Support/ConstantFolder.h | 9 | ||||
| -rw-r--r-- | llvm/include/llvm/Support/NoFolder.h | 6 |
2 files changed, 7 insertions, 8 deletions
diff --git a/llvm/include/llvm/Support/ConstantFolder.h b/llvm/include/llvm/Support/ConstantFolder.h index dfcf012b71f..cb9b0555847 100644 --- a/llvm/include/llvm/Support/ConstantFolder.h +++ b/llvm/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/llvm/include/llvm/Support/NoFolder.h b/llvm/include/llvm/Support/NoFolder.h index 6c9ac450d4a..e0fb9cdb3f5 100644 --- a/llvm/include/llvm/Support/NoFolder.h +++ b/llvm/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 |

