Add external definitions for commonly-used template specializations and add
[oota-llvm.git] / lib / Support / SystemUtils.cpp
index 55e33d046c085e78b5dfe580c8c65629a2e3cca9..88c3515920ffd8095fc64c0431a58f23a4e4da62 100644 (file)
@@ -23,9 +23,9 @@ bool llvm::CheckBytecodeOutputToConsole(std::ostream* stream_to_check,
   if (stream_to_check == &std::cout && sys::Process::StandardOutIsDisplayed()) {
     if (print_warning) {
       std::cerr << "WARNING: You're attempting to print out a bytecode file.\n"
-                << "This is inadvisable as it may cause display problems. If\n"
-                << "you REALLY want to taste LLVM bytecode first-hand, you\n"
-                << "can force output with the `-f' option.\n\n";
+                   "This is inadvisable as it may cause display problems. If\n"
+                   "you REALLY want to taste LLVM bytecode first-hand, you\n"
+                   "can force output with the `-f' option.\n\n";
     }
     return true;
   }
@@ -45,10 +45,10 @@ 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);
-    if (Result.executable())
+    Result.appendComponent(ExeName);
+    if (Result.canExecute())
       return Result;
   }