[llvm-commits] CVS: llvm/tools/lli/Interpreter/ExternalFunctions.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Apr 23 14:22:00 PDT 2003
Changes in directory llvm/tools/lli/Interpreter:
ExternalFunctions.cpp updated: 1.44 -> 1.45
---
Log message:
Add support for _IO_getc function used on linux
---
Diffs of the changes:
Index: llvm/tools/lli/Interpreter/ExternalFunctions.cpp
diff -u llvm/tools/lli/Interpreter/ExternalFunctions.cpp:1.44 llvm/tools/lli/Interpreter/ExternalFunctions.cpp:1.45
--- llvm/tools/lli/Interpreter/ExternalFunctions.cpp:1.44 Mon Apr 21 17:43:20 2003
+++ llvm/tools/lli/Interpreter/ExternalFunctions.cpp Wed Apr 23 14:20:50 2003
@@ -666,6 +666,11 @@
return GV;
}
+// int _IO_getc(FILE *stream);
+GenericValue lle_X__IO_getc(FunctionType *F, const vector<GenericValue> &Args) {
+ return lle_X_getc(F, Args);
+}
+
// int fputc(int C, FILE *stream);
GenericValue lle_X_fputc(FunctionType *M, const vector<GenericValue> &Args) {
assert(Args.size() == 2);
@@ -749,6 +754,7 @@
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;
More information about the llvm-commits
mailing list