From 26a4a1f5caa66677486a0f8414f3821a210de608 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 23 Apr 2003 19:20:50 +0000 Subject: [PATCH] Add support for _IO_getc function used on linux llvm-svn: 5883 --- llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp index 3b4090b89807..824d2e2a51c4 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp +++ b/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp @@ -666,6 +666,11 @@ GenericValue lle_X_getc(FunctionType *M, const vector &Args) { return GV; } +// int _IO_getc(FILE *stream); +GenericValue lle_X__IO_getc(FunctionType *F, const vector &Args) { + return lle_X_getc(F, Args); +} + // int fputc(int C, FILE *stream); GenericValue lle_X_fputc(FunctionType *M, const vector &Args) { assert(Args.size() == 2); @@ -749,6 +754,7 @@ void Interpreter::initializeExternalMethods() { FuncNames["lle_X_fflush"] = lle_X_fflush; FuncNames["lle_X_fgetc"] = lle_X_getc; FuncNames["lle_X_getc"] = lle_X_getc; + FuncNames["lle_X__IO_getc"] = lle_X__IO_getc; FuncNames["lle_X_fputc"] = lle_X_fputc; FuncNames["lle_X_ungetc"] = lle_X_ungetc; FuncNames["lle_X_fprintf"] = lle_X_fprintf; -- GitLab