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
#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

View File

@ -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