OSDN Git Service

[Modules] Move the ConstantFolder into the IR library where it can
authorChandler Carruth <chandlerc@gmail.com>
Tue, 4 Mar 2014 12:02:47 +0000 (12:02 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 4 Mar 2014 12:02:47 +0000 (12:02 +0000)
reference the ConstantExpr implementation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202833 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/ConstantFolder.h [moved from include/llvm/Support/ConstantFolder.h with 98% similarity]
include/llvm/IR/IRBuilder.h

similarity index 98%
rename from include/llvm/Support/ConstantFolder.h
rename to include/llvm/IR/ConstantFolder.h
index 4aad952..86668f7 100644 (file)
@@ -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"
index 2926466..d28652f 100644 (file)
 #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;