diff options
author | Chris Lattner <sabre@nondot.org> | 2002-12-06 03:52:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-12-06 03:52:51 +0000 |
commit | 5d7a579842ce4f35cbd107e6573faa9b29775f1d (patch) | |
tree | 5468cdeaf57a0564922c23df32f3445fabbc6791 /tools | |
parent | c35679b45f4e54246d650ca8f361c795fd748a59 (diff) | |
download | external_llvm-5d7a579842ce4f35cbd107e6573faa9b29775f1d.zip external_llvm-5d7a579842ce4f35cbd107e6573faa9b29775f1d.tar.gz external_llvm-5d7a579842ce4f35cbd107e6573faa9b29775f1d.tar.bz2 |
Fix to make jello compile on Sparc even though it won't run.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4937 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/jello/Callback.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/jello/Callback.cpp b/tools/jello/Callback.cpp index 173657d..0969f19 100644 --- a/tools/jello/Callback.cpp +++ b/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 } |