diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-08-08 03:55:08 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-08-08 03:55:08 +0000 |
commit | 8261dfed05e32302469ef707cc881fed2c31f85f (patch) | |
tree | bb97bbb81559b343d821cb49182073a7c245d4a4 /tools/bugpoint/bugpoint.cpp | |
parent | a1cba686af266b361db6f705042e029e671742db (diff) | |
download | llvm-8261dfed05e32302469ef707cc881fed2c31f85f.tar.gz llvm-8261dfed05e32302469ef707cc881fed2c31f85f.tar.bz2 llvm-8261dfed05e32302469ef707cc881fed2c31f85f.tar.xz |
Most of bugpoint now only needs to know the pass names.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110534 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/bugpoint.cpp')
-rw-r--r-- | tools/bugpoint/bugpoint.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/bugpoint/bugpoint.cpp b/tools/bugpoint/bugpoint.cpp index 17f3fc7479..025beec0bd 100644 --- a/tools/bugpoint/bugpoint.cpp +++ b/tools/bugpoint/bugpoint.cpp @@ -85,7 +85,7 @@ namespace { virtual void add(Pass *P) { const void *ID = P->getPassID(); const PassInfo *PI = PassRegistry::getPassRegistry()->getPassInfo(ID); - D.addPasses(&PI, &PI + 1); + D.addPass(PI->getPassArgument()); } }; } @@ -137,7 +137,13 @@ int main(int argc, char **argv) { /*RunInliner=*/true, /*VerifyEach=*/false); - D.addPasses(PassList.begin(), PassList.end()); + + for (std::vector<const PassInfo*>::iterator I = PassList.begin(), + E = PassList.end(); + I != E; ++I) { + const PassInfo* PI = *I; + D.addPass(PI->getPassArgument()); + } // Bugpoint has the ability of generating a plethora of core files, so to // avoid filling up the disk, we prevent it |