summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-23 08:43:55 +0000
committerChris Lattner <sabre@nondot.org>2009-08-23 08:43:55 +0000
commit471ba48cb99a9d9bb8964f63363a3470369c2ecc (patch)
treec2df904af193eb7651904e850c607ea08dfbf3e4 /llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
parent0ad0c21248024f2343810fe3ab3b2d646ffb0ef4 (diff)
downloadbcm5719-llvm-471ba48cb99a9d9bb8964f63363a3470369c2ecc.tar.gz
bcm5719-llvm-471ba48cb99a9d9bb8964f63363a3470369c2ecc.zip
remove some uses of llvm/Support/Streams.h
llvm-svn: 79842
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
index 92fd817cde0..12ca9cd1d34 100644
--- a/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
+++ b/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
@@ -24,7 +24,6 @@
#include "llvm/Module.h"
#include "llvm/Config/config.h" // Detect libffi
#include "llvm/Support/ErrorHandling.h"
-#include "llvm/Support/Streams.h"
#include "llvm/System/DynamicLibrary.h"
#include "llvm/Target/TargetData.h"
#include "llvm/Support/ManagedStatic.h"
@@ -279,7 +278,7 @@ GenericValue Interpreter::callExternalFunction(Function *F,
#endif // USE_LIBFFI
if (F->getName() == "__main")
- cerr << "Tried to execute an unknown external function: "
+ errs() << "Tried to execute an unknown external function: "
<< F->getType()->getDescription() << " __main\n";
else
llvm_report_error("Tried to execute an unknown external function: " +
@@ -393,7 +392,8 @@ GenericValue lle_X_sprintf(const FunctionType *FT,
sprintf(Buffer, FmtBuf, (void*)GVTOP(Args[ArgNo++])); break;
case 's':
sprintf(Buffer, FmtBuf, (char*)GVTOP(Args[ArgNo++])); break;
- default: cerr << "<unknown printf code '" << *FmtStr << "'!>";
+ default:
+ errs() << "<unknown printf code '" << *FmtStr << "'!>";
ArgNo++; break;
}
strcpy(OutputBuffer, Buffer);
@@ -414,7 +414,7 @@ GenericValue lle_X_printf(const FunctionType *FT,
NewArgs.push_back(PTOGV((void*)&Buffer[0]));
NewArgs.insert(NewArgs.end(), Args.begin(), Args.end());
GenericValue GV = lle_X_sprintf(FT, NewArgs);
- cout << Buffer;
+ outs() << Buffer;
return GV;
}
OpenPOWER on IntegriCloud