For PR351:
authorReid Spencer <rspencer@reidspencer.com>
Sun, 19 Dec 2004 17:59:45 +0000 (17:59 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 19 Dec 2004 17:59:45 +0000 (17:59 +0000)
Turn path instance variables into sys::Path instead of std::string

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19038 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/ToolRunner.h
tools/bugpoint/ToolRunner.h

index 0fa7de45632ffd690f2c9ca7c22b338204790553..b5313e942ca70156b9b0c7bb0ec6bbe27398c57c 100644 (file)
@@ -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<std::string> 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<std::string> *Args) : LLCPath(llcPath), gcc(Gcc) {
     ToolArgs.clear ();
     if (Args) { ToolArgs = *Args; }
index 0fa7de45632ffd690f2c9ca7c22b338204790553..b5313e942ca70156b9b0c7bb0ec6bbe27398c57c 100644 (file)
@@ -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<std::string> 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<std::string> *Args) : LLCPath(llcPath), gcc(Gcc) {
     ToolArgs.clear ();
     if (Args) { ToolArgs = *Args; }