From 9234e060659bec52046187e4123ceb784264036c Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Tue, 4 Mar 2014 12:02:47 +0000 Subject: [PATCH] [Modules] Move the ConstantFolder into the IR library where it can reference the ConstantExpr implementation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202833 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/{Support => IR}/ConstantFolder.h | 6 +++--- include/llvm/IR/IRBuilder.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename include/llvm/{Support => IR}/ConstantFolder.h (98%) diff --git a/include/llvm/Support/ConstantFolder.h b/include/llvm/IR/ConstantFolder.h similarity index 98% rename from include/llvm/Support/ConstantFolder.h rename to include/llvm/IR/ConstantFolder.h index 4aad952aaca..86668f7e7df 100644 --- a/include/llvm/Support/ConstantFolder.h +++ b/include/llvm/IR/ConstantFolder.h @@ -1,4 +1,4 @@ -//===-- llvm/Support/ConstantFolder.h - Constant folding helper -*- C++ -*-===// +//===- ConstantFolder.h - Constant folding helper ---------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -14,8 +14,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_SUPPORT_CONSTANTFOLDER_H -#define LLVM_SUPPORT_CONSTANTFOLDER_H +#ifndef LLVM_IR_CONSTANTFOLDER_H +#define LLVM_IR_CONSTANTFOLDER_H #include "llvm/IR/Constants.h" #include "llvm/IR/InstrTypes.h" diff --git a/include/llvm/IR/IRBuilder.h b/include/llvm/IR/IRBuilder.h index 29264668e1b..d28652f1251 100644 --- a/include/llvm/IR/IRBuilder.h +++ b/include/llvm/IR/IRBuilder.h @@ -19,13 +19,13 @@ #include "llvm/ADT/StringRef.h" #include "llvm/ADT/Twine.h" #include "llvm/IR/BasicBlock.h" +#include "llvm/IR/ConstantFolder.h" #include "llvm/IR/DataLayout.h" #include "llvm/IR/Instructions.h" #include "llvm/IR/LLVMContext.h" #include "llvm/IR/Operator.h" #include "llvm/IR/ValueHandle.h" #include "llvm/Support/CBindingWrapping.h" -#include "llvm/Support/ConstantFolder.h" namespace llvm { class MDNode; -- 2.34.1