From bd7029ffb3495973153253ecc722ee722aaca910 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 6 Dec 2002 03:52:51 +0000 Subject: [PATCH] Fix to make jello compile on Sparc even though it won't run. llvm-svn: 4937 --- llvm/tools/jello/Callback.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/tools/jello/Callback.cpp b/llvm/tools/jello/Callback.cpp index 173657daba0a..0969f194109b 100644 --- a/llvm/tools/jello/Callback.cpp +++ b/llvm/tools/jello/Callback.cpp @@ -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 }