X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=tools%2Fbugpoint%2FBugDriver.h;h=db35c851d9a43322878e3921e0f654077ec3fbbd;hb=9e6d1d1f5034347d237941f1bf08fba5c1583cd3;hp=79c7038071eede2110be04bff929a2c63175f85d;hpb=48b2f3e4850cd27d54224cd42da8a160d6b95984;p=oota-llvm.git diff --git a/tools/bugpoint/BugDriver.h b/tools/bugpoint/BugDriver.h index 79c7038071e..db35c851d9a 100644 --- a/tools/bugpoint/BugDriver.h +++ b/tools/bugpoint/BugDriver.h @@ -30,7 +30,7 @@ class Function; class BasicBlock; class AbstractInterpreter; class Instruction; -struct LLVMContext; +class LLVMContext; class DebugCrashes; @@ -44,7 +44,7 @@ extern bool BugpointIsInterrupted; class BugDriver { LLVMContext& Context; - const std::string ToolName; // Name of bugpoint + const char *ToolName; // argv[0] of bugpoint std::string ReferenceOutputFile; // Name of `good' output file Module *Program; // The raw program, linked together std::vector PassesToRun; @@ -64,7 +64,7 @@ public: BugDriver(const char *toolname, bool as_child, bool find_bugs, unsigned timeout, unsigned memlimit, LLVMContext& ctxt); - const std::string &getToolName() const { return ToolName; } + const char *getToolName() const { return ToolName; } LLVMContext& getContext() { return Context; }