Since everyone else has "fixed" this file, might as well join in the fun.
authorMisha Brukman <brukman+llvm@gmail.com>
Fri, 20 May 2005 19:46:50 +0000 (19:46 +0000)
committerMisha Brukman <brukman+llvm@gmail.com>
Fri, 20 May 2005 19:46:50 +0000 (19:46 +0000)
* 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

lib/Target/X86/X86JITInfo.cpp

index 77bf053694779c27e819fc4b89a0a89e5ee205a5..4766e1f33340186bcf166a76bf6752289acc1673 100644 (file)
@@ -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