From: Misha Brukman Date: Fri, 20 May 2005 19:46:50 +0000 (+0000) Subject: Since everyone else has "fixed" this file, might as well join in the fun. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=57ebf3d6a8f583bb51ad54887f18083963299807;p=oota-llvm.git Since everyone else has "fixed" this file, might as well join in the fun. * Change assert() to std::cerr printout, as it will not appear in opt builds * Add comments to clarify what #ifdef/#else/#endif match what condition(s) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22154 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86JITInfo.cpp b/lib/Target/X86/X86JITInfo.cpp index 77bf0536947..4766e1f3334 100644 --- a/lib/Target/X86/X86JITInfo.cpp +++ b/lib/Target/X86/X86JITInfo.cpp @@ -69,12 +69,11 @@ extern "C" { ret } } -#endif +#endif // _MSC_VER -#else - // Not an i386 host +#else // Not an i386 host void X86CompilationCallback() { - assert(0 && "This is not a X86, you can't execute this!"); + std::cerr << "Cannot call X86CompilationCallback() on a non-x86 arch!\n"; abort(); } #endif