summaryrefslogtreecommitdiffstats
path: root/llvm/runtime
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
commit0c1b51e622ec0a0a48d28f1081df3946b803feb6 (patch)
treec26d738178f0fe948150d9be62afbd4be5c4537f /llvm/runtime
parent9af99f8c74b249b6f5cb4740ba7ba80dac1f40b5 (diff)
downloadbcm5719-llvm-0c1b51e622ec0a0a48d28f1081df3946b803feb6.tar.gz
bcm5719-llvm-0c1b51e622ec0a0a48d28f1081df3946b803feb6.zip
Implement the printf function, used by assert
llvm-svn: 2666
Diffstat (limited to 'llvm/runtime')
-rw-r--r--llvm/runtime/GCCLibraries/libgcc/eprintf.c13
1 files changed, 13 insertions, 0 deletions
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 <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 ();
+}
+
OpenPOWER on IntegriCloud