diff options
author | Bill Wendling <isanbard@gmail.com> | 2006-10-25 18:36:14 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2006-10-25 18:36:14 +0000 |
commit | 4e3be89cb5cde6e2df294c64db3bc28133b67594 (patch) | |
tree | bac57f80bd41231b9bb2d953374106fea1e7f8b6 /tools/bugpoint/BugDriver.h | |
parent | 08fb05c3ac440979021f508bfee073359be46f7e (diff) | |
download | external_llvm-4e3be89cb5cde6e2df294c64db3bc28133b67594.zip external_llvm-4e3be89cb5cde6e2df294c64db3bc28133b67594.tar.gz external_llvm-4e3be89cb5cde6e2df294c64db3bc28133b67594.tar.bz2 |
Fix for PR960. Improves bugpoint so that it removes global variable
initializers as well. This is only a first pass. It can be slow because
it clones the module for each pass. An obvious improvement is not to do that.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31182 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/BugDriver.h')
-rw-r--r-- | tools/bugpoint/BugDriver.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/bugpoint/BugDriver.h b/tools/bugpoint/BugDriver.h index 2029e2d..3de7b05 100644 --- a/tools/bugpoint/BugDriver.h +++ b/tools/bugpoint/BugDriver.h @@ -23,6 +23,7 @@ namespace llvm { class PassInfo; class Module; +class GlobalVariable; class Function; class BasicBlock; class AbstractInterpreter; @@ -295,6 +296,10 @@ std::string getPassesString(const std::vector<const PassInfo*> &Passes); /// void PrintFunctionList(const std::vector<Function*> &Funcs); +/// PrintGlobalVariableList - prints out list of problematic global variables +/// +void PrintGlobalVariableList(const std::vector<GlobalVariable*> &GVs); + // DeleteFunctionBody - "Remove" the function by deleting all of it's basic // blocks, making it external. // |