[CodeGenPrepare] Move CodeGenPrepare into lib/CodeGen.

CodeGenPrepare uses extensively TargetLowering which is part of libLLVMCodeGen.
This is a layer violation which would introduce eventually a dependence on
CodeGen in ScalarOpts.

Move CodeGenPrepare into libLLVMCodeGen to avoid that.

Follow-up of <rdar://problem/15519855>


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201912 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Quentin Colombet
2014-02-22 00:07:45 +00:00
parent 0206b30ea6
commit 8048c44580
14 changed files with 17 additions and 13 deletions
+1
View File
@@ -1,6 +1,7 @@
set(LLVM_LINK_COMPONENTS
Analysis
BitWriter
CodeGen
Core
IPA
IPO
+1 -1
View File
@@ -19,4 +19,4 @@
type = Tool
name = bugpoint
parent = Tools
required_libraries = AsmParser BitReader BitWriter IRReader IPO Instrumentation Linker Scalar ObjCARC
required_libraries = AsmParser BitReader BitWriter CodeGen IRReader IPO Instrumentation Linker Scalar ObjCARC
+1 -1
View File
@@ -10,7 +10,7 @@
LEVEL := ../..
TOOLNAME := bugpoint
LINK_COMPONENTS := asmparser instrumentation scalaropts ipo linker bitreader \
bitwriter irreader vectorize objcarcopts
bitwriter irreader vectorize objcarcopts codegen
# Support plugins.
NO_DEAD_STRIP := 1