diff options
| author | Ed Schouten <ed@nuxi.nl> | 2016-09-28 13:51:23 +0000 |
|---|---|---|
| committer | Ed Schouten <ed@nuxi.nl> | 2016-09-28 13:51:23 +0000 |
| commit | 47ca99b3726dc6d1f5b0de986848f608741bc5a4 (patch) | |
| tree | 5c61a22a074f42c8428fec0cfa338995ce045538 | |
| parent | 0fe1e6383725592fcc053cf829131ac1a9337cd0 (diff) | |
| download | bcm5719-llvm-47ca99b3726dc6d1f5b0de986848f608741bc5a4.tar.gz bcm5719-llvm-47ca99b3726dc6d1f5b0de986848f608741bc5a4.zip | |
Also use the proper register numbers on CloudABI.
Without this change applied, unw_step() fails to obtain the next frame
properly.
llvm-svn: 282589
| -rw-r--r-- | libunwind/include/libunwind.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libunwind/include/libunwind.h b/libunwind/include/libunwind.h index 3233bfbbc55..b52fe9da002 100644 --- a/libunwind/include/libunwind.h +++ b/libunwind/include/libunwind.h @@ -151,7 +151,7 @@ enum { UNW_X86_ECX = 1, UNW_X86_EDX = 2, UNW_X86_EBX = 3, -#ifdef __FreeBSD__ +#if defined(__CloudABI__) || defined(__FreeBSD__) UNW_X86_ESP = 4, UNW_X86_EBP = 5, #else |

