[llvm-commits] CVS: llvm/lib/Target/X86/X86JITInfo.cpp

Misha Brukman brukman at cs.uiuc.edu
Fri May 20 12:47:01 PDT 2005



Changes in directory llvm/lib/Target/X86:

X86JITInfo.cpp updated: 1.9 -> 1.10
---
Log message:

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)


---
Diffs of the changes:  (+3 -4)

 X86JITInfo.cpp |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)


Index: llvm/lib/Target/X86/X86JITInfo.cpp
diff -u llvm/lib/Target/X86/X86JITInfo.cpp:1.9 llvm/lib/Target/X86/X86JITInfo.cpp:1.10
--- llvm/lib/Target/X86/X86JITInfo.cpp:1.9	Fri May 20 12:00:21 2005
+++ llvm/lib/Target/X86/X86JITInfo.cpp	Fri May 20 14:46:50 2005
@@ -69,12 +69,11 @@
       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






More information about the llvm-commits mailing list