summaryrefslogtreecommitdiff
path: root/lib/Transforms/IPO/LoopExtractor.cpp
diff options
context:
space:
mode:
authorGordon Henriksen <gordonhenriksen@mac.com>2007-11-05 01:54:05 +0000
committerGordon Henriksen <gordonhenriksen@mac.com>2007-11-05 01:54:05 +0000
commit4e1be6d5ea90d0714171d0d19033508bc4fe7f30 (patch)
tree19c76dff2db9a2d2c75bdf161cf2c7eace82d9e5 /lib/Transforms/IPO/LoopExtractor.cpp
parent8dec727c1f26323c49dd5896088ce8226ac3fafa (diff)
downloadllvm-4e1be6d5ea90d0714171d0d19033508bc4fe7f30.tar.gz
llvm-4e1be6d5ea90d0714171d0d19033508bc4fe7f30.tar.bz2
llvm-4e1be6d5ea90d0714171d0d19033508bc4fe7f30.tar.xz
Deleting redundant copy of block extractor pass. See also PR1775.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43694 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/LoopExtractor.cpp')
-rw-r--r--lib/Transforms/IPO/LoopExtractor.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Transforms/IPO/LoopExtractor.cpp b/lib/Transforms/IPO/LoopExtractor.cpp
index 6afcf29f9c..a6787fea11 100644
--- a/lib/Transforms/IPO/LoopExtractor.cpp
+++ b/lib/Transforms/IPO/LoopExtractor.cpp
@@ -151,7 +151,7 @@ namespace {
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 @@ namespace {
// 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);
}