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;
}
// 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;
}