Instead of silently breaking, print notification of why this doesn't work.
authorChris Lattner <sabre@nondot.org>
Sat, 9 Oct 2004 21:13:51 +0000 (21:13 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 9 Oct 2004 21:13:51 +0000 (21:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16870 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SparcV9/SparcV9CodeEmitter.cpp

index fa7ef249a9f8a221e3a8ffdeaa9a4a9a5e04f0c9..fd53d576852220f0ed88a8193a82c39f6f2b8bd3 100644 (file)
@@ -260,6 +260,9 @@ void JITResolver::SaveRegisters(uint64_t DoubleFP[], uint64_t CC[],
                           "=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 @@ void JITResolver::RestoreRegisters(uint64_t DoubleFP[], uint64_t CC[],
                            "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 @@ void JITResolver::CompilationCallback() {
   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