From cfb81918edab8bed2c8bbab5602342b60c1a60a7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 20 May 2002 19:11:23 +0000 Subject: [PATCH] Implement the printf function, used by assert git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2666 91177308-0d34-0410-b5e6-96231b3b80d8 --- runtime/GCCLibraries/libgcc/eprintf.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 runtime/GCCLibraries/libgcc/eprintf.c diff --git a/runtime/GCCLibraries/libgcc/eprintf.c b/runtime/GCCLibraries/libgcc/eprintf.c new file mode 100644 index 00000000000..d4229fad921 --- /dev/null +++ b/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 (); +} +