diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2014-01-13 07:38:24 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2014-01-13 07:38:24 +0000 |
commit | b7bdfd65acd07e1d4158049219a6b68178873983 (patch) | |
tree | 8c60b5f22168499f93583b8b42867c5f654db46e /llvm/tools/llvm-extract/llvm-extract.cpp | |
parent | eccd28d5194609f4f558cbe80c7788609afdd1e2 (diff) | |
download | bcm5719-llvm-b7bdfd65acd07e1d4158049219a6b68178873983.tar.gz bcm5719-llvm-b7bdfd65acd07e1d4158049219a6b68178873983.zip |
[PM] Wire up support for writing bitcode with new PM.
This moves the old pass creation functionality to its own header and
updates the callers of that routine. Then it adds a new PM supporting
bitcode writer to the header file, and wires that up in the opt tool.
A test is added that round-trips code into bitcode and back out using
the new pass manager.
llvm-svn: 199078
Diffstat (limited to 'llvm/tools/llvm-extract/llvm-extract.cpp')
-rw-r--r-- | llvm/tools/llvm-extract/llvm-extract.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-extract/llvm-extract.cpp b/llvm/tools/llvm-extract/llvm-extract.cpp index 4962151e566..639e8fc2d04 100644 --- a/llvm/tools/llvm-extract/llvm-extract.cpp +++ b/llvm/tools/llvm-extract/llvm-extract.cpp @@ -14,7 +14,7 @@ #include "llvm/ADT/SetVector.h" #include "llvm/ADT/SmallPtrSet.h" -#include "llvm/Bitcode/ReaderWriter.h" +#include "llvm/Bitcode/BitcodeWriterPass.h" #include "llvm/IR/DataLayout.h" #include "llvm/IR/IRPrintingPasses.h" #include "llvm/IR/LLVMContext.h" |