diff --git a/include/llvm/Support/ConstantFolder.h b/include/llvm/Support/ConstantFolder.h index dfcf012b71f..cb9b0555847 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 6c9ac450d4a..e0fb9cdb3f5 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