[llvm-commits] CVS: llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Tue Jun 15 22:03:02 PDT 2004
Changes in directory llvm/lib/ExecutionEngine/Interpreter:
ExternalFunctions.cpp updated: 1.75 -> 1.76
---
Log message:
Add int ferror(FILE *)
---
Diffs of the changes: (+8 -0)
Index: llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
diff -u llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp:1.75 llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp:1.76
--- llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp:1.75 Thu May 27 16:24:38 2004
+++ llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp Tue Jun 15 21:56:40 2004
@@ -636,6 +636,14 @@
return GV;
}
+// int ferror (FILE *stream);
+GenericValue lle_X_ferror(FunctionType *M, const vector<GenericValue> &Args) {
+ assert(Args.size() == 1);
+ GenericValue GV;
+ GV.IntVal = ferror (getFILE(GVTOP(Args[0])));
+ return GV;
+}
+
// int fprintf(FILE *,sbyte *, ...) - a very rough implementation to make output
// useful.
GenericValue lle_X_fprintf(FunctionType *M, const vector<GenericValue> &Args) {
More information about the llvm-commits
mailing list