prepare for a change I'm about to make
[oota-llvm.git] / lib / Support / SystemUtils.cpp
index 77c97f3111d51907c5cabdaaf677a2f6a4ac0d24..88c3515920ffd8095fc64c0431a58f23a4e4da62 100644 (file)
@@ -45,9 +45,9 @@ sys::Path llvm::FindExecutable(const std::string &ExeName,
   // if ProgramPath contains at least one / character, indicating that it is a
   // relative path to bugpoint itself.
   sys::Path Result ( ProgramPath );
-  Result.elideFile();
+  Result.eraseComponent();
   if (!Result.isEmpty()) {
-    Result.appendFile(ExeName);
+    Result.appendComponent(ExeName);
     if (Result.canExecute())
       return Result;
   }