diff options
author | Chris Lattner <sabre@nondot.org> | 2002-05-20 19:11:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-05-20 19:11:23 +0000 |
commit | cfb81918edab8bed2c8bbab5602342b60c1a60a7 (patch) | |
tree | a317e445ec1d3ddf44790abfdb1901186418482e /runtime | |
parent | 5245f853c54e422b3004d5f80d2aaaebbceb8468 (diff) |
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')
-rw-r--r-- | runtime/GCCLibraries/libgcc/eprintf.c | 13 |
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 (); +} + |