summaryrefslogtreecommitdiff
path: root/tools/llvm-upgrade/llvm-upgrade.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2006-12-07 01:30:32 +0000
committerBill Wendling <isanbard@gmail.com>2006-12-07 01:30:32 +0000
commite81561909d128c6e2d8033cb5465a49b2596b26a (patch)
tree6f2845604d482bc86d8d12aae500292c561d8cd7 /tools/llvm-upgrade/llvm-upgrade.cpp
parent85c671b90870705ba7e10baf99aa306c843f1325 (diff)
downloadllvm-e81561909d128c6e2d8033cb5465a49b2596b26a.tar.gz
llvm-e81561909d128c6e2d8033cb5465a49b2596b26a.tar.bz2
llvm-e81561909d128c6e2d8033cb5465a49b2596b26a.tar.xz
Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, are
now cerr, cout, and NullStream resp. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32298 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-upgrade/llvm-upgrade.cpp')
-rw-r--r--tools/llvm-upgrade/llvm-upgrade.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/tools/llvm-upgrade/llvm-upgrade.cpp b/tools/llvm-upgrade/llvm-upgrade.cpp
index d39aa92d12..65ee452e1c 100644
--- a/tools/llvm-upgrade/llvm-upgrade.cpp
+++ b/tools/llvm-upgrade/llvm-upgrade.cpp
@@ -57,9 +57,9 @@ int main(int argc, char **argv) {
if (OutputFilename != "-") { // Not stdout?
if (!Force && std::ifstream(OutputFilename.c_str())) {
// If force is not specified, make sure not to overwrite a file!
- llvm_cerr << argv[0] << ": error opening '" << OutputFilename
- << "': file exists!\n"
- << "Use -f command line argument to force output\n";
+ cerr << argv[0] << ": error opening '" << OutputFilename
+ << "': file exists!\n"
+ << "Use -f command line argument to force output\n";
return 1;
}
Out = new std::ofstream(OutputFilename.c_str(), std::ios::out |
@@ -84,9 +84,9 @@ int main(int argc, char **argv) {
if (!Force && std::ifstream(OutputFilename.c_str())) {
// If force is not specified, make sure not to overwrite a file!
- llvm_cerr << argv[0] << ": error opening '" << OutputFilename
- << "': file exists!\n"
- << "Use -f command line argument to force output\n";
+ cerr << argv[0] << ": error opening '" << OutputFilename
+ << "': file exists!\n"
+ << "Use -f command line argument to force output\n";
return 1;
}
@@ -106,22 +106,22 @@ int main(int argc, char **argv) {
}
if (!Out->good()) {
- llvm_cerr << argv[0] << ": error opening " << OutputFilename << "!\n";
+ cerr << argv[0] << ": error opening " << OutputFilename << "!\n";
return 1;
}
if (!In->good()) {
- llvm_cerr << argv[0] << ": error opening " << InputFilename << "!\n";
+ cerr << argv[0] << ": error opening " << InputFilename << "!\n";
return 1;
}
UpgradeAssembly(InputFilename, *In, *Out, Debug);
} catch (const std::string& caught_message) {
- llvm_cerr << argv[0] << ": " << caught_message << "\n";
+ cerr << argv[0] << ": " << caught_message << "\n";
exitCode = 1;
} catch (...) {
- llvm_cerr << argv[0] << ": Unexpected unknown exception occurred.\n";
+ cerr << argv[0] << ": Unexpected unknown exception occurred.\n";
exitCode = 1;
}