[llvm-commits] CVS: llvm/lib/Target/SparcV9/SparcV9CodeEmitter.cpp

Chris Lattner lattner at cs.uiuc.edu
Sat Oct 9 14:14:05 PDT 2004



Changes in directory llvm/lib/Target/SparcV9:

SparcV9CodeEmitter.cpp updated: 1.72 -> 1.73
---
Log message:

Instead of silently breaking, print notification of why this doesn't work.


---
Diffs of the changes:  (+9 -0)

Index: llvm/lib/Target/SparcV9/SparcV9CodeEmitter.cpp
diff -u llvm/lib/Target/SparcV9/SparcV9CodeEmitter.cpp:1.72 llvm/lib/Target/SparcV9/SparcV9CodeEmitter.cpp:1.73
--- llvm/lib/Target/SparcV9/SparcV9CodeEmitter.cpp:1.72	Wed Sep 29 18:01:17 2004
+++ llvm/lib/Target/SparcV9/SparcV9CodeEmitter.cpp	Sat Oct  9 16:13:51 2004
@@ -260,6 +260,9 @@
                           "=m"(DoubleFP[26]), "=m"(DoubleFP[27]),
                           "=m"(DoubleFP[28]), "=m"(DoubleFP[29]),
                           "=m"(DoubleFP[30]), "=m"(DoubleFP[31]));
+#else
+  std::cerr << "ERROR: RUNNING CODE THAT ONLY WORKS ON A SPARCV9 HOST!\n";
+  abort();
 #endif
 }
 
@@ -316,6 +319,9 @@
                            "m"(DoubleFP[26]), "m"(DoubleFP[27]),
                            "m"(DoubleFP[28]), "m"(DoubleFP[29]),
                            "m"(DoubleFP[30]), "m"(DoubleFP[31]));
+#else
+  std::cerr << "ERROR: RUNNING CODE THAT ONLY WORKS ON A SPARCV9 HOST!\n";
+  abort();
 #endif
 }
 
@@ -338,6 +344,9 @@
   DEBUG(std::cerr << "Read i7 (return addr) = "
                   << std::hex << returnAddr << ", value: "
                   << std::hex << *(unsigned*)returnAddr << "\n");
+#else
+  std::cerr << "ERROR: RUNNING CODE THAT ONLY WORKS ON A SPARCV9 HOST!\n";
+  abort();
 #endif
 
   // If we can rewrite the ORIGINAL caller, we eliminate the whole need for a






More information about the llvm-commits mailing list