Deleting redundant copy of block extractor pass. See also PR1775.
llvm-svn: 43694
diff --git a/llvm/lib/Transforms/IPO/LoopExtractor.cpp b/llvm/lib/Transforms/IPO/LoopExtractor.cpp
index 6afcf29..a6787fe 100644
--- a/llvm/lib/Transforms/IPO/LoopExtractor.cpp
+++ b/llvm/lib/Transforms/IPO/LoopExtractor.cpp
@@ -151,7 +151,7 @@
std::vector<BasicBlock*> BlocksToNotExtract;
public:
static char ID; // Pass identification, replacement for typeid
- explicit BlockExtractorPass(std::vector<BasicBlock*> &B)
+ explicit BlockExtractorPass(const std::vector<BasicBlock*> &B)
: ModulePass((intptr_t)&ID), BlocksToNotExtract(B) {}
BlockExtractorPass() : ModulePass((intptr_t)&ID) {}
@@ -166,7 +166,8 @@
// createBlockExtractorPass - This pass extracts all blocks (except those
// specified in the argument list) from the functions in the module.
//
-ModulePass *llvm::createBlockExtractorPass(std::vector<BasicBlock*> &BTNE) {
+ModulePass *llvm::createBlockExtractorPass(const std::vector<BasicBlock*> &BTNE)
+{
return new BlockExtractorPass(BTNE);
}