diff options
| author | Quentin Colombet <qcolombet@apple.com> | 2014-02-22 00:07:45 +0000 |
|---|---|---|
| committer | Quentin Colombet <qcolombet@apple.com> | 2014-02-22 00:07:45 +0000 |
| commit | a349084a91025cff528bc3c4e5582ae5e049c2fc (patch) | |
| tree | 97142329696aa929a843015c56f1192d79ab50ef /llvm/lib/CodeGen/CodeGen.cpp | |
| parent | 204c3c50b9e749ce4cb6781e734b1eeb4bbc567e (diff) | |
| download | bcm5719-llvm-a349084a91025cff528bc3c4e5582ae5e049c2fc.tar.gz bcm5719-llvm-a349084a91025cff528bc3c4e5582ae5e049c2fc.zip | |
[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>
llvm-svn: 201912
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/CodeGen.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/CodeGen.cpp b/llvm/lib/CodeGen/CodeGen.cpp index c0db5a54b87..17402f066da 100644 --- a/llvm/lib/CodeGen/CodeGen.cpp +++ b/llvm/lib/CodeGen/CodeGen.cpp @@ -22,6 +22,7 @@ using namespace llvm; void llvm::initializeCodeGen(PassRegistry &Registry) { initializeBasicTTIPass(Registry); initializeBranchFolderPassPass(Registry); + initializeCodeGenPreparePass(Registry); initializeDeadMachineInstructionElimPass(Registry); initializeEarlyIfConverterPass(Registry); initializeExpandPostRAPass(Registry); |

