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
This commit is contained in:
Dan Gohman 2009-08-11 15:56:12 +00:00
parent d3fe75e2bf
commit 7f4151bc69
2 changed files with 7 additions and 8 deletions

View File

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

View File

@ -28,12 +28,12 @@
namespace llvm { namespace llvm {
class LLVMContext;
/// NoFolder - Create "constants" (actually, values) with no folding. /// NoFolder - Create "constants" (actually, values) with no folding.
class NoFolder { class NoFolder {
LLVMContext &Context;
public: public:
explicit NoFolder(LLVMContext &) {}
NoFolder(LLVMContext &C) : Context(C) { }
//===--------------------------------------------------------------------===// //===--------------------------------------------------------------------===//
// Binary Operators // Binary Operators