diff --git a/include/llvm/Support/ToolRunner.h b/include/llvm/Support/ToolRunner.h index 0fa7de45632..b5313e942ca 100644 --- a/include/llvm/Support/ToolRunner.h +++ b/include/llvm/Support/ToolRunner.h @@ -44,8 +44,8 @@ public: // GCC abstraction // class GCC { - std::string GCCPath; // The path to the gcc executable - GCC(const std::string &gccPath) : GCCPath(gccPath) { } + sys::Path GCCPath; // The path to the gcc executable + GCC(const sys::Path &gccPath) : GCCPath(gccPath) { } public: enum FileType { AsmFile, CFile }; @@ -118,11 +118,11 @@ struct AbstractInterpreter { // CBE Implementation of AbstractIntepreter interface // class CBE : public AbstractInterpreter { - std::string LLCPath; // The path to the `llc' executable + sys::Path LLCPath; // The path to the `llc' executable std::vector ToolArgs; // Extra args to pass to LLC GCC *gcc; public: - CBE(const std::string &llcPath, GCC *Gcc, + CBE(const sys::Path &llcPath, GCC *Gcc, const std::vector *Args) : LLCPath(llcPath), gcc(Gcc) { ToolArgs.clear (); if (Args) { ToolArgs = *Args; } diff --git a/tools/bugpoint/ToolRunner.h b/tools/bugpoint/ToolRunner.h index 0fa7de45632..b5313e942ca 100644 --- a/tools/bugpoint/ToolRunner.h +++ b/tools/bugpoint/ToolRunner.h @@ -44,8 +44,8 @@ public: // GCC abstraction // class GCC { - std::string GCCPath; // The path to the gcc executable - GCC(const std::string &gccPath) : GCCPath(gccPath) { } + sys::Path GCCPath; // The path to the gcc executable + GCC(const sys::Path &gccPath) : GCCPath(gccPath) { } public: enum FileType { AsmFile, CFile }; @@ -118,11 +118,11 @@ struct AbstractInterpreter { // CBE Implementation of AbstractIntepreter interface // class CBE : public AbstractInterpreter { - std::string LLCPath; // The path to the `llc' executable + sys::Path LLCPath; // The path to the `llc' executable std::vector ToolArgs; // Extra args to pass to LLC GCC *gcc; public: - CBE(const std::string &llcPath, GCC *Gcc, + CBE(const sys::Path &llcPath, GCC *Gcc, const std::vector *Args) : LLCPath(llcPath), gcc(Gcc) { ToolArgs.clear (); if (Args) { ToolArgs = *Args; }