Fix to make jello compile on Sparc even though it won't run.
authorChris Lattner <sabre@nondot.org>
Fri, 6 Dec 2002 03:52:51 +0000 (03:52 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 6 Dec 2002 03:52:51 +0000 (03:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4937 91177308-0d34-0410-b5e6-96231b3b80d8

tools/jello/Callback.cpp

index 173657daba0a848904091845409ba90b2bc8df1d..0969f194109b76f0c0a3d938a2bb817cbdc32ffa 100644 (file)
@@ -15,6 +15,7 @@ static VM *TheVM = 0;
 static void TrapHandler(int TN, siginfo_t *SI, ucontext_t *ucp) {
   assert(TN == SIGSEGV && "Should be SIGSEGV!");
 
+#ifdef REG_EIP   /* this code does not compile on Sparc! */
   if (SI->si_code != SEGV_MAPERR || SI->si_addr != 0 ||
       ucp->uc_mcontext.gregs[REG_EIP] != 0) {
     std::cerr << "Bad SEGV encountered!\n";
@@ -41,6 +42,8 @@ static void TrapHandler(int TN, siginfo_t *SI, ucontext_t *ucp) {
 
   // Change the instruction pointer to be the real target of the call...
   ucp->uc_mcontext.gregs[REG_EIP] = NewVal;
+
+#endif
 }