xref: /freebsd/contrib/llvm-project/compiler-rt/lib/orc/tests/unit/common.cpp (revision 5922e9d7e72bfa8a85b0f37bcfd1a8b5d866ec3b)
1 #include <stdio.h>
2 
3 /// Defined so that tests can use code that logs errors.
4 extern "C" void __orc_rt_log_error(const char *ErrMsg) {
5   fprintf(stderr, "orc runtime error: %s\n", ErrMsg);
6 }
7