summaryrefslogtreecommitdiff
path: root/tools/llvm-ld
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-08-02 21:50:27 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-08-02 21:50:27 +0000
commitc684e83e4554bfaf6180426f86b9253b65dd46ec (patch)
tree828df691f44e6d0ce0f8970414ffef3fd87992c9 /tools/llvm-ld
parent3d453ac1317f910b0589d87c061f056be29e36cd (diff)
downloadllvm-c684e83e4554bfaf6180426f86b9253b65dd46ec.tar.gz
llvm-c684e83e4554bfaf6180426f86b9253b65dd46ec.tar.bz2
llvm-c684e83e4554bfaf6180426f86b9253b65dd46ec.tar.xz
Move methods in PassManagerBuilder offline.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136727 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-ld')
-rw-r--r--tools/llvm-ld/Optimize.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/llvm-ld/Optimize.cpp b/tools/llvm-ld/Optimize.cpp
index a05ab0abcf..7f3f90014f 100644
--- a/tools/llvm-ld/Optimize.cpp
+++ b/tools/llvm-ld/Optimize.cpp
@@ -12,6 +12,8 @@
//===----------------------------------------------------------------------===//
#include "llvm/Module.h"
+#include "llvm/PassManager.h"
+#include "llvm/Analysis/Verifier.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Support/DynamicLibrary.h"
@@ -19,7 +21,9 @@
#include "llvm/Target/TargetMachine.h"
#include "llvm/Support/PassNameParser.h"
#include "llvm/Support/PluginLoader.h"
+#include "llvm/Transforms/IPO.h"
#include "llvm/Transforms/IPO/PassManagerBuilder.h"
+#include "llvm/Transforms/Scalar.h"
using namespace llvm;
// Pass Name Options as generated by the PassNameParser