summaryrefslogtreecommitdiff
path: root/runtime/GCCLibraries
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-05-20 19:11:23 +0000
committerChris Lattner <sabre@nondot.org>2002-05-20 19:11:23 +0000
commitcfb81918edab8bed2c8bbab5602342b60c1a60a7 (patch)
treea317e445ec1d3ddf44790abfdb1901186418482e /runtime/GCCLibraries
parent5245f853c54e422b3004d5f80d2aaaebbceb8468 (diff)
downloadllvm-cfb81918edab8bed2c8bbab5602342b60c1a60a7.tar.gz
llvm-cfb81918edab8bed2c8bbab5602342b60c1a60a7.tar.bz2
llvm-cfb81918edab8bed2c8bbab5602342b60c1a60a7.tar.xz
Implement the printf function, used by assert
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2666 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime/GCCLibraries')
-rw-r--r--runtime/GCCLibraries/libgcc/eprintf.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/runtime/GCCLibraries/libgcc/eprintf.c b/runtime/GCCLibraries/libgcc/eprintf.c
new file mode 100644
index 0000000000..d4229fad92
--- /dev/null
+++ b/runtime/GCCLibraries/libgcc/eprintf.c
@@ -0,0 +1,13 @@
+#include <stdio.h>
+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 ();
+}
+