aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/LLVMTargetMachine.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-10-18 18:50:27 +0000
committerDan Gohman <gohman@apple.com>2010-10-18 18:50:27 +0000
commit4021fccf9fdb60906e5f16c98e72042240867495 (patch)
tree3c03a6f1ecddb2320a97c653a18c6f94923034bd /lib/CodeGen/LLVMTargetMachine.cpp
parentbdcbf6152b58a77865403d847ca9965a0f52a662 (diff)
downloadexternal_llvm-4021fccf9fdb60906e5f16c98e72042240867495.tar.gz
external_llvm-4021fccf9fdb60906e5f16c98e72042240867495.tar.bz2
external_llvm-4021fccf9fdb60906e5f16c98e72042240867495.zip
Add TypeBasedAliasAnalysis to the standard pass lists. Note that it
is currently inert by default. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116732 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r--lib/CodeGen/LLVMTargetMachine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp
index a3b605238a..60aa1e5c98 100644
--- a/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/lib/CodeGen/LLVMTargetMachine.cpp
@@ -14,7 +14,6 @@
#include "llvm/Target/TargetMachine.h"
#include "llvm/PassManager.h"
#include "llvm/Analysis/Verifier.h"
-#include "llvm/Analysis/Passes.h"
#include "llvm/Assembly/PrintModulePass.h"
#include "llvm/CodeGen/AsmPrinter.h"
#include "llvm/CodeGen/MachineFunctionAnalysis.h"
@@ -31,6 +30,7 @@
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/FormattedStream.h"
+#include "llvm/Support/StandardPasses.h"
using namespace llvm;
namespace llvm {
@@ -256,7 +256,7 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM,
// Standard LLVM-Level Passes.
// Basic AliasAnalysis support.
- PM.add(createBasicAliasAnalysisPass());
+ createStandardAliasAnalysisPasses(&PM);
// Before running any passes, run the verifier to determine if the input
// coming from the front-end and/or optimizer is valid.