From 0c1b51e622ec0a0a48d28f1081df3946b803feb6 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 20 May 2002 19:11:23 +0000 Subject: Implement the printf function, used by assert llvm-svn: 2666 --- llvm/runtime/GCCLibraries/libgcc/eprintf.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 llvm/runtime/GCCLibraries/libgcc/eprintf.c (limited to 'llvm/runtime') diff --git a/llvm/runtime/GCCLibraries/libgcc/eprintf.c b/llvm/runtime/GCCLibraries/libgcc/eprintf.c new file mode 100644 index 00000000000..d4229fad921 --- /dev/null +++ b/llvm/runtime/GCCLibraries/libgcc/eprintf.c @@ -0,0 +1,13 @@ +#include +void abort(void); + +/* This is used by the `assert' macro. */ +void +__eprintf (const char *string, const char *expression, + unsigned int line, const char *filename) +{ + fprintf (stderr, string, expression, line, filename); + fflush (stderr); + abort (); +} + -- cgit v1.2.3