aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bugpoint/BugDriver.h
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-07-20 08:26:15 +0000
committerOwen Anderson <resistor@mac.com>2010-07-20 08:26:15 +0000
commit8be3291f5942e3ae4a5d66c480e7aabe2f771031 (patch)
treec8c82d984f9dc21c27426099f79bd412a2ff95c9 /tools/bugpoint/BugDriver.h
parent29e9daa75019e6ee7b3305f7ef11a2cd85b96b55 (diff)
downloadexternal_llvm-8be3291f5942e3ae4a5d66c480e7aabe2f771031.zip
external_llvm-8be3291f5942e3ae4a5d66c480e7aabe2f771031.tar.gz
external_llvm-8be3291f5942e3ae4a5d66c480e7aabe2f771031.tar.bz2
Speculatively revert r108813, in an attempt to get the self-host buildbots working again. I don't see why this patch
would cause them to fail the way they are, but none of the other intervening patches seem likely either. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108818 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/BugDriver.h')
-rw-r--r--tools/bugpoint/BugDriver.h23
1 files changed, 11 insertions, 12 deletions
diff --git a/tools/bugpoint/BugDriver.h b/tools/bugpoint/BugDriver.h
index 36c90b0..4f6bae5 100644
--- a/tools/bugpoint/BugDriver.h
+++ b/tools/bugpoint/BugDriver.h
@@ -23,7 +23,7 @@
namespace llvm {
class Value;
-class StaticPassInfo;
+class PassInfo;
class Module;
class GlobalVariable;
class Function;
@@ -47,7 +47,7 @@ class BugDriver {
const char *ToolName; // argv[0] of bugpoint
std::string ReferenceOutputFile; // Name of `good' output file
Module *Program; // The raw program, linked together
- std::vector<const StaticPassInfo*> PassesToRun;
+ std::vector<const PassInfo*> PassesToRun;
AbstractInterpreter *Interpreter; // How to run the program
AbstractInterpreter *SafeInterpreter; // To generate reference output, etc.
GCC *gcc;
@@ -77,10 +77,10 @@ public:
bool addSources(const std::vector<std::string> &FileNames);
template<class It>
void addPasses(It I, It E) { PassesToRun.insert(PassesToRun.end(), I, E); }
- void setPassesToRun(const std::vector<const StaticPassInfo*> &PTR) {
+ void setPassesToRun(const std::vector<const PassInfo*> &PTR) {
PassesToRun = PTR;
}
- const std::vector<const StaticPassInfo*> &getPassesToRun() const {
+ const std::vector<const PassInfo*> &getPassesToRun() const {
return PassesToRun;
}
@@ -112,7 +112,7 @@ public:
/// ReferenceOutput contains the filename of the file containing the output we
/// are to match.
///
- bool debugPassMiscompilation(const StaticPassInfo *ThePass,
+ bool debugPassMiscompilation(const PassInfo *ThePass,
const std::string &ReferenceOutput);
/// compileSharedObject - This method creates a SharedObject from a given
@@ -243,8 +243,7 @@ public:
/// failure. If AutoDebugCrashes is set to true, then bugpoint will
/// automatically attempt to track down a crashing pass if one exists, and
/// this method will never return null.
- Module *runPassesOn(Module *M,
- const std::vector<const StaticPassInfo*> &Passes,
+ Module *runPassesOn(Module *M, const std::vector<const PassInfo*> &Passes,
bool AutoDebugCrashes = false, unsigned NumExtraArgs = 0,
const char * const *ExtraArgs = NULL);
@@ -257,7 +256,7 @@ public:
/// or failed, unless Quiet is set. ExtraArgs specifies additional arguments
/// to pass to the child bugpoint instance.
///
- bool runPasses(const std::vector<const StaticPassInfo*> &PassesToRun,
+ bool runPasses(const std::vector<const PassInfo*> &PassesToRun,
std::string &OutputFilename, bool DeleteOutput = false,
bool Quiet = false, unsigned NumExtraArgs = 0,
const char * const *ExtraArgs = NULL) const;
@@ -269,7 +268,7 @@ public:
/// If the passes did not compile correctly, output the command required to
/// recreate the failure. This returns true if a compiler error is found.
///
- bool runManyPasses(const std::vector<const StaticPassInfo*> &AllPasses,
+ bool runManyPasses(const std::vector<const PassInfo*> &AllPasses,
std::string &ErrMsg);
/// writeProgramToFile - This writes the current "Program" to the named
@@ -282,14 +281,14 @@ private:
/// false indicating whether or not the optimizer crashed on the specified
/// input (true = crashed).
///
- bool runPasses(const std::vector<const StaticPassInfo*> &PassesToRun,
+ bool runPasses(const std::vector<const PassInfo*> &PassesToRun,
bool DeleteOutput = true) const {
std::string Filename;
return runPasses(PassesToRun, Filename, DeleteOutput);
}
/// runAsChild - The actual "runPasses" guts that runs in a child process.
- int runPassesAsChild(const std::vector<const StaticPassInfo*> &PassesToRun);
+ int runPassesAsChild(const std::vector<const PassInfo*> &PassesToRun);
/// initializeExecutionEnvironment - This method is used to set up the
/// environment for executing LLVM programs.
@@ -307,7 +306,7 @@ Module *ParseInputFile(const std::string &InputFilename,
/// getPassesString - Turn a list of passes into a string which indicates the
/// command line options that must be passed to add the passes.
///
-std::string getPassesString(const std::vector<const StaticPassInfo*> &Passes);
+std::string getPassesString(const std::vector<const PassInfo*> &Passes);
/// PrintFunctionList - prints out list of problematic functions
///