From d9ea85ab01fb0f2929ed50223d3758dceea8bcbd Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 23 Aug 2009 08:43:55 +0000 Subject: remove some uses of llvm/Support/Streams.h git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79842 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp | 8 ++++---- lib/ExecutionEngine/JIT/Intercept.cpp | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'lib/ExecutionEngine') diff --git a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp index 92fd817cde..12ca9cd1d3 100644 --- a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp +++ b/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 << ""; + default: + errs() << ""; 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; } diff --git a/lib/ExecutionEngine/JIT/Intercept.cpp b/lib/ExecutionEngine/JIT/Intercept.cpp index f1e900f63b..c00b60a276 100644 --- a/lib/ExecutionEngine/JIT/Intercept.cpp +++ b/lib/ExecutionEngine/JIT/Intercept.cpp @@ -17,7 +17,6 @@ #include "JIT.h" #include "llvm/Support/ErrorHandling.h" -#include "llvm/Support/Streams.h" #include "llvm/System/DynamicLibrary.h" #include "llvm/Config/config.h" using namespace llvm; -- cgit v1.2.3