diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-07-31 00:32:17 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-07-31 00:32:17 +0000 |
commit | d720670393434effa832b686b4a482b736bd9c4d (patch) | |
tree | 64b09059760c00b02377c286b448da8c872bc63f /include/llvm/Transforms | |
parent | 7f9cb744f284f23b362b010c1986d230c89d179c (diff) | |
download | llvm-d720670393434effa832b686b4a482b736bd9c4d.tar.gz llvm-d720670393434effa832b686b4a482b736bd9c4d.tar.bz2 llvm-d720670393434effa832b686b4a482b736bd9c4d.tar.xz |
The BlockExtractorPass() constructor was not reading the BlockFile and that was
exactly what bugpoint expected it to do.
There was also only one user of
BlockExtractorPass(const std::vector<BasicBlock*> &B), so just remove it and
make BlockExtractorPass read BlockFile.
This fixes bugpoint's block extraction.
Nick, please review.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109936 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms')
-rw-r--r-- | include/llvm/Transforms/IPO.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Transforms/IPO.h b/include/llvm/Transforms/IPO.h index 8fb4b63c64..fc67bc594b 100644 --- a/include/llvm/Transforms/IPO.h +++ b/include/llvm/Transforms/IPO.h @@ -181,7 +181,7 @@ Pass *createSingleLoopExtractorPass(); /// createBlockExtractorPass - This pass extracts all blocks (except those /// specified in the argument list) from the functions in the module. /// -ModulePass *createBlockExtractorPass(const std::vector<BasicBlock*> &BTNE); +ModulePass *createBlockExtractorPass(); /// createStripDeadPrototypesPass - This pass removes any function declarations /// (prototypes) that are not used. |