[libcxxabi] r235759 - libc++abi: remove the duplicated unwind content

Saleem Abdulrasool compnerd at compnerd.org
Fri Apr 24 12:40:32 PDT 2015


Author: compnerd
Date: Fri Apr 24 14:40:31 2015
New Revision: 235759

URL: http://llvm.org/viewvc/llvm-project?rev=235759&view=rev
Log:
libc++abi: remove the duplicated unwind content

The unwinder has been moved into its own project setup at
http://svn.llvm.org/projects/libunwind/trunk.  This simply removes the now
duplicated content.  This move was previously discussed on llvmdev at [1].

[1] http://lists.cs.uiuc.edu/pipermail/llvmdev/2015-January/081507.html

Removed:
    libcxxabi/trunk/include/libunwind.h
    libcxxabi/trunk/include/mach-o/
    libcxxabi/trunk/include/unwind.h
    libcxxabi/trunk/src/Unwind/
    libcxxabi/trunk/test/unwind_01.pass.cpp
    libcxxabi/trunk/test/unwind_02.pass.cpp
    libcxxabi/trunk/test/unwind_03.pass.cpp
    libcxxabi/trunk/test/unwind_04.pass.cpp
    libcxxabi/trunk/test/unwind_05.pass.cpp
    libcxxabi/trunk/test/unwind_06.pass.cpp
Modified:
    libcxxabi/trunk/CMakeLists.txt

Modified: libcxxabi/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/CMakeLists.txt?rev=235759&r1=235758&r2=235759&view=diff
==============================================================================
--- libcxxabi/trunk/CMakeLists.txt (original)
+++ libcxxabi/trunk/CMakeLists.txt Fri Apr 24 14:40:31 2015
@@ -300,13 +300,14 @@ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${LI
 #===============================================================================
 
 include_directories(include)
+include_directories(../libunwind/include)
 
 # Add source code. This also contains all of the logic for deciding linker flags
 # soname, etc...
 add_subdirectory(src)
 
 if (LIBCXXABI_USE_LLVM_UNWINDER)
-  add_subdirectory(src/Unwind)
+  add_subdirectory(../libunwind/src "${CMAKE_CURRENT_BINARY_DIR}/libunwind")
 endif()
 
 if(NOT LIBCXXABI_ENABLE_SHARED)

Removed: libcxxabi/trunk/include/libunwind.h
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/include/libunwind.h?rev=235758&view=auto
==============================================================================
--- libcxxabi/trunk/include/libunwind.h (original)
+++ libcxxabi/trunk/include/libunwind.h (removed)
@@ -1,500 +0,0 @@
-//===---------------------------- libunwind.h -----------------------------===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//
-// Compatible with libuwind API documented at:
-//   http://www.nongnu.org/libunwind/man/libunwind(3).html
-//
-//===----------------------------------------------------------------------===//
-
-#ifndef __LIBUNWIND__
-#define __LIBUNWIND__
-
-#include <stdint.h>
-#include <stddef.h>
-
-#include <__cxxabi_config.h>
-
-#ifdef __APPLE__
-  #include <Availability.h>
-    #ifdef __arm__
-       #define LIBUNWIND_AVAIL __attribute__((unavailable))
-    #else
-      #define LIBUNWIND_AVAIL __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_5_0)
-    #endif
-#else
-  #define LIBUNWIND_AVAIL
-#endif
-
-/* error codes */
-enum {
-  UNW_ESUCCESS      = 0,     /* no error */
-  UNW_EUNSPEC       = -6540, /* unspecified (general) error */
-  UNW_ENOMEM        = -6541, /* out of memory */
-  UNW_EBADREG       = -6542, /* bad register number */
-  UNW_EREADONLYREG  = -6543, /* attempt to write read-only register */
-  UNW_ESTOPUNWIND   = -6544, /* stop unwinding */
-  UNW_EINVALIDIP    = -6545, /* invalid IP */
-  UNW_EBADFRAME     = -6546, /* bad frame */
-  UNW_EINVAL        = -6547, /* unsupported operation or bad value */
-  UNW_EBADVERSION   = -6548, /* unwind info has unsupported version */
-  UNW_ENOINFO       = -6549  /* no unwind info found */
-};
-
-struct unw_context_t {
-  uint64_t data[128];
-};
-typedef struct unw_context_t unw_context_t;
-
-struct unw_cursor_t {
-  uint64_t data[140];
-};
-typedef struct unw_cursor_t unw_cursor_t;
-
-typedef struct unw_addr_space *unw_addr_space_t;
-
-typedef int unw_regnum_t;
-#if LIBCXXABI_ARM_EHABI
-typedef uint32_t unw_word_t;
-typedef uint64_t unw_fpreg_t;
-#else
-typedef uint64_t unw_word_t;
-typedef double unw_fpreg_t;
-#endif
-
-struct unw_proc_info_t {
-  unw_word_t  start_ip;         /* start address of function */
-  unw_word_t  end_ip;           /* address after end of function */
-  unw_word_t  lsda;             /* address of language specific data area, */
-                                /*  or zero if not used */
-  unw_word_t  handler;          /* personality routine, or zero if not used */
-  unw_word_t  gp;               /* not used */
-  unw_word_t  flags;            /* not used */
-  uint32_t    format;           /* compact unwind encoding, or zero if none */
-  uint32_t    unwind_info_size; /* size of dwarf unwind info, or zero if none */
-  unw_word_t  unwind_info;      /* address of dwarf unwind info, or zero */
-  unw_word_t  extra;            /* mach_header of mach-o image containing func */
-};
-typedef struct unw_proc_info_t unw_proc_info_t;
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-extern int unw_getcontext(unw_context_t *) LIBUNWIND_AVAIL;
-extern int unw_init_local(unw_cursor_t *, unw_context_t *) LIBUNWIND_AVAIL;
-extern int unw_step(unw_cursor_t *) LIBUNWIND_AVAIL;
-extern int unw_get_reg(unw_cursor_t *, unw_regnum_t, unw_word_t *) LIBUNWIND_AVAIL;
-extern int unw_get_fpreg(unw_cursor_t *, unw_regnum_t, unw_fpreg_t *) LIBUNWIND_AVAIL;
-extern int unw_set_reg(unw_cursor_t *, unw_regnum_t, unw_word_t) LIBUNWIND_AVAIL;
-extern int unw_set_fpreg(unw_cursor_t *, unw_regnum_t, unw_fpreg_t)  LIBUNWIND_AVAIL;
-extern int unw_resume(unw_cursor_t *) LIBUNWIND_AVAIL;
-
-#ifdef __arm__
-/* Save VFP registers in FSTMX format (instead of FSTMD). */
-extern void unw_save_vfp_as_X(unw_cursor_t *) LIBUNWIND_AVAIL;
-#endif
-
-
-extern const char *unw_regname(unw_cursor_t *, unw_regnum_t) LIBUNWIND_AVAIL;
-extern int unw_get_proc_info(unw_cursor_t *, unw_proc_info_t *) LIBUNWIND_AVAIL;
-extern int unw_is_fpreg(unw_cursor_t *, unw_regnum_t) LIBUNWIND_AVAIL;
-extern int unw_is_signal_frame(unw_cursor_t *) LIBUNWIND_AVAIL;
-extern int unw_get_proc_name(unw_cursor_t *, char *, size_t, unw_word_t *) LIBUNWIND_AVAIL;
-//extern int       unw_get_save_loc(unw_cursor_t*, int, unw_save_loc_t*);
-
-extern unw_addr_space_t unw_local_addr_space;
-
-#ifdef UNW_REMOTE
-/*
- * Mac OS X "remote" API for unwinding other processes on same machine
- *
- */
-extern unw_addr_space_t unw_create_addr_space_for_task(task_t);
-extern void unw_destroy_addr_space(unw_addr_space_t);
-extern int unw_init_remote_thread(unw_cursor_t *, unw_addr_space_t, thread_t *);
-#endif /* UNW_REMOTE */
-
-/*
- * traditional libuwind "remote" API
- *   NOT IMPLEMENTED on Mac OS X
- *
- * extern int               unw_init_remote(unw_cursor_t*, unw_addr_space_t,
- *                                          thread_t*);
- * extern unw_accessors_t   unw_get_accessors(unw_addr_space_t);
- * extern unw_addr_space_t  unw_create_addr_space(unw_accessors_t, int);
- * extern void              unw_flush_cache(unw_addr_space_t, unw_word_t,
- *                                          unw_word_t);
- * extern int               unw_set_caching_policy(unw_addr_space_t,
- *                                                 unw_caching_policy_t);
- * extern void              _U_dyn_register(unw_dyn_info_t*);
- * extern void              _U_dyn_cancel(unw_dyn_info_t*);
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-// architecture independent register numbers
-enum {
-  UNW_REG_IP = -1, // instruction pointer
-  UNW_REG_SP = -2, // stack pointer
-};
-
-// 32-bit x86 registers
-enum {
-  UNW_X86_EAX = 0,
-  UNW_X86_ECX = 1,
-  UNW_X86_EDX = 2,
-  UNW_X86_EBX = 3,
-  UNW_X86_EBP = 4,
-  UNW_X86_ESP = 5,
-  UNW_X86_ESI = 6,
-  UNW_X86_EDI = 7
-};
-
-// 64-bit x86_64 registers
-enum {
-  UNW_X86_64_RAX = 0,
-  UNW_X86_64_RDX = 1,
-  UNW_X86_64_RCX = 2,
-  UNW_X86_64_RBX = 3,
-  UNW_X86_64_RSI = 4,
-  UNW_X86_64_RDI = 5,
-  UNW_X86_64_RBP = 6,
-  UNW_X86_64_RSP = 7,
-  UNW_X86_64_R8  = 8,
-  UNW_X86_64_R9  = 9,
-  UNW_X86_64_R10 = 10,
-  UNW_X86_64_R11 = 11,
-  UNW_X86_64_R12 = 12,
-  UNW_X86_64_R13 = 13,
-  UNW_X86_64_R14 = 14,
-  UNW_X86_64_R15 = 15
-};
-
-
-// 32-bit ppc register numbers
-enum {
-  UNW_PPC_R0  = 0,
-  UNW_PPC_R1  = 1,
-  UNW_PPC_R2  = 2,
-  UNW_PPC_R3  = 3,
-  UNW_PPC_R4  = 4,
-  UNW_PPC_R5  = 5,
-  UNW_PPC_R6  = 6,
-  UNW_PPC_R7  = 7,
-  UNW_PPC_R8  = 8,
-  UNW_PPC_R9  = 9,
-  UNW_PPC_R10 = 10,
-  UNW_PPC_R11 = 11,
-  UNW_PPC_R12 = 12,
-  UNW_PPC_R13 = 13,
-  UNW_PPC_R14 = 14,
-  UNW_PPC_R15 = 15,
-  UNW_PPC_R16 = 16,
-  UNW_PPC_R17 = 17,
-  UNW_PPC_R18 = 18,
-  UNW_PPC_R19 = 19,
-  UNW_PPC_R20 = 20,
-  UNW_PPC_R21 = 21,
-  UNW_PPC_R22 = 22,
-  UNW_PPC_R23 = 23,
-  UNW_PPC_R24 = 24,
-  UNW_PPC_R25 = 25,
-  UNW_PPC_R26 = 26,
-  UNW_PPC_R27 = 27,
-  UNW_PPC_R28 = 28,
-  UNW_PPC_R29 = 29,
-  UNW_PPC_R30 = 30,
-  UNW_PPC_R31 = 31,
-  UNW_PPC_F0  = 32,
-  UNW_PPC_F1  = 33,
-  UNW_PPC_F2  = 34,
-  UNW_PPC_F3  = 35,
-  UNW_PPC_F4  = 36,
-  UNW_PPC_F5  = 37,
-  UNW_PPC_F6  = 38,
-  UNW_PPC_F7  = 39,
-  UNW_PPC_F8  = 40,
-  UNW_PPC_F9  = 41,
-  UNW_PPC_F10 = 42,
-  UNW_PPC_F11 = 43,
-  UNW_PPC_F12 = 44,
-  UNW_PPC_F13 = 45,
-  UNW_PPC_F14 = 46,
-  UNW_PPC_F15 = 47,
-  UNW_PPC_F16 = 48,
-  UNW_PPC_F17 = 49,
-  UNW_PPC_F18 = 50,
-  UNW_PPC_F19 = 51,
-  UNW_PPC_F20 = 52,
-  UNW_PPC_F21 = 53,
-  UNW_PPC_F22 = 54,
-  UNW_PPC_F23 = 55,
-  UNW_PPC_F24 = 56,
-  UNW_PPC_F25 = 57,
-  UNW_PPC_F26 = 58,
-  UNW_PPC_F27 = 59,
-  UNW_PPC_F28 = 60,
-  UNW_PPC_F29 = 61,
-  UNW_PPC_F30 = 62,
-  UNW_PPC_F31 = 63,
-  UNW_PPC_MQ  = 64,
-  UNW_PPC_LR  = 65,
-  UNW_PPC_CTR = 66,
-  UNW_PPC_AP  = 67,
-  UNW_PPC_CR0 = 68,
-  UNW_PPC_CR1 = 69,
-  UNW_PPC_CR2 = 70,
-  UNW_PPC_CR3 = 71,
-  UNW_PPC_CR4 = 72,
-  UNW_PPC_CR5 = 73,
-  UNW_PPC_CR6 = 74,
-  UNW_PPC_CR7 = 75,
-  UNW_PPC_XER = 76,
-  UNW_PPC_V0  = 77,
-  UNW_PPC_V1  = 78,
-  UNW_PPC_V2  = 79,
-  UNW_PPC_V3  = 80,
-  UNW_PPC_V4  = 81,
-  UNW_PPC_V5  = 82,
-  UNW_PPC_V6  = 83,
-  UNW_PPC_V7  = 84,
-  UNW_PPC_V8  = 85,
-  UNW_PPC_V9  = 86,
-  UNW_PPC_V10 = 87,
-  UNW_PPC_V11 = 88,
-  UNW_PPC_V12 = 89,
-  UNW_PPC_V13 = 90,
-  UNW_PPC_V14 = 91,
-  UNW_PPC_V15 = 92,
-  UNW_PPC_V16 = 93,
-  UNW_PPC_V17 = 94,
-  UNW_PPC_V18 = 95,
-  UNW_PPC_V19 = 96,
-  UNW_PPC_V20 = 97,
-  UNW_PPC_V21 = 98,
-  UNW_PPC_V22 = 99,
-  UNW_PPC_V23 = 100,
-  UNW_PPC_V24 = 101,
-  UNW_PPC_V25 = 102,
-  UNW_PPC_V26 = 103,
-  UNW_PPC_V27 = 104,
-  UNW_PPC_V28 = 105,
-  UNW_PPC_V29 = 106,
-  UNW_PPC_V30 = 107,
-  UNW_PPC_V31 = 108,
-  UNW_PPC_VRSAVE  = 109,
-  UNW_PPC_VSCR    = 110,
-  UNW_PPC_SPE_ACC = 111,
-  UNW_PPC_SPEFSCR = 112
-};
-
-// 64-bit ARM64 registers
-enum {
-  UNW_ARM64_X0  = 0,
-  UNW_ARM64_X1  = 1,
-  UNW_ARM64_X2  = 2,
-  UNW_ARM64_X3  = 3,
-  UNW_ARM64_X4  = 4,
-  UNW_ARM64_X5  = 5,
-  UNW_ARM64_X6  = 6,
-  UNW_ARM64_X7  = 7,
-  UNW_ARM64_X8  = 8,
-  UNW_ARM64_X9  = 9,
-  UNW_ARM64_X10 = 10,
-  UNW_ARM64_X11 = 11,
-  UNW_ARM64_X12 = 12,
-  UNW_ARM64_X13 = 13,
-  UNW_ARM64_X14 = 14,
-  UNW_ARM64_X15 = 15,
-  UNW_ARM64_X16 = 16,
-  UNW_ARM64_X17 = 17,
-  UNW_ARM64_X18 = 18,
-  UNW_ARM64_X19 = 19,
-  UNW_ARM64_X20 = 20,
-  UNW_ARM64_X21 = 21,
-  UNW_ARM64_X22 = 22,
-  UNW_ARM64_X23 = 23,
-  UNW_ARM64_X24 = 24,
-  UNW_ARM64_X25 = 25,
-  UNW_ARM64_X26 = 26,
-  UNW_ARM64_X27 = 27,
-  UNW_ARM64_X28 = 28,
-  UNW_ARM64_X29 = 29,
-  UNW_ARM64_FP  = 29,
-  UNW_ARM64_X30 = 30,
-  UNW_ARM64_LR  = 30,
-  UNW_ARM64_X31 = 31,
-  UNW_ARM64_SP  = 31,
-  // reserved block
-  UNW_ARM64_D0  = 64,
-  UNW_ARM64_D1  = 65,
-  UNW_ARM64_D2  = 66,
-  UNW_ARM64_D3  = 67,
-  UNW_ARM64_D4  = 68,
-  UNW_ARM64_D5  = 69,
-  UNW_ARM64_D6  = 70,
-  UNW_ARM64_D7  = 71,
-  UNW_ARM64_D8  = 72,
-  UNW_ARM64_D9  = 73,
-  UNW_ARM64_D10 = 74,
-  UNW_ARM64_D11 = 75,
-  UNW_ARM64_D12 = 76,
-  UNW_ARM64_D13 = 77,
-  UNW_ARM64_D14 = 78,
-  UNW_ARM64_D15 = 79,
-  UNW_ARM64_D16 = 80,
-  UNW_ARM64_D17 = 81,
-  UNW_ARM64_D18 = 82,
-  UNW_ARM64_D19 = 83,
-  UNW_ARM64_D20 = 84,
-  UNW_ARM64_D21 = 85,
-  UNW_ARM64_D22 = 86,
-  UNW_ARM64_D23 = 87,
-  UNW_ARM64_D24 = 88,
-  UNW_ARM64_D25 = 89,
-  UNW_ARM64_D26 = 90,
-  UNW_ARM64_D27 = 91,
-  UNW_ARM64_D28 = 92,
-  UNW_ARM64_D29 = 93,
-  UNW_ARM64_D30 = 94,
-  UNW_ARM64_D31 = 95,
-};
-
-// 32-bit ARM registers. Numbers match DWARF for ARM spec #3.1 Table 1.
-// Naming scheme uses recommendations given in Note 4 for VFP-v2 and VFP-v3.
-// In this scheme, even though the 64-bit floating point registers D0-D31
-// overlap physically with the 32-bit floating pointer registers S0-S31,
-// they are given a non-overlapping range of register numbers.
-//
-// Commented out ranges are not preserved during unwinding.
-enum {
-  UNW_ARM_R0  = 0,
-  UNW_ARM_R1  = 1,
-  UNW_ARM_R2  = 2,
-  UNW_ARM_R3  = 3,
-  UNW_ARM_R4  = 4,
-  UNW_ARM_R5  = 5,
-  UNW_ARM_R6  = 6,
-  UNW_ARM_R7  = 7,
-  UNW_ARM_R8  = 8,
-  UNW_ARM_R9  = 9,
-  UNW_ARM_R10 = 10,
-  UNW_ARM_R11 = 11,
-  UNW_ARM_R12 = 12,
-  UNW_ARM_SP  = 13,  // Logical alias for UNW_REG_SP
-  UNW_ARM_R13 = 13,
-  UNW_ARM_LR  = 14,
-  UNW_ARM_R14 = 14,
-  UNW_ARM_IP  = 15,  // Logical alias for UNW_REG_IP
-  UNW_ARM_R15 = 15,
-  // 16-63 -- OBSOLETE. Used in VFP1 to represent both S0-S31 and D0-D31.
-  UNW_ARM_S0  = 64,
-  UNW_ARM_S1  = 65,
-  UNW_ARM_S2  = 66,
-  UNW_ARM_S3  = 67,
-  UNW_ARM_S4  = 68,
-  UNW_ARM_S5  = 69,
-  UNW_ARM_S6  = 70,
-  UNW_ARM_S7  = 71,
-  UNW_ARM_S8  = 72,
-  UNW_ARM_S9  = 73,
-  UNW_ARM_S10 = 74,
-  UNW_ARM_S11 = 75,
-  UNW_ARM_S12 = 76,
-  UNW_ARM_S13 = 77,
-  UNW_ARM_S14 = 78,
-  UNW_ARM_S15 = 79,
-  UNW_ARM_S16 = 80,
-  UNW_ARM_S17 = 81,
-  UNW_ARM_S18 = 82,
-  UNW_ARM_S19 = 83,
-  UNW_ARM_S20 = 84,
-  UNW_ARM_S21 = 85,
-  UNW_ARM_S22 = 86,
-  UNW_ARM_S23 = 87,
-  UNW_ARM_S24 = 88,
-  UNW_ARM_S25 = 89,
-  UNW_ARM_S26 = 90,
-  UNW_ARM_S27 = 91,
-  UNW_ARM_S28 = 92,
-  UNW_ARM_S29 = 93,
-  UNW_ARM_S30 = 94,
-  UNW_ARM_S31 = 95,
-  //  96-103 -- OBSOLETE. F0-F7. Used by the FPA system. Superseded by VFP.
-  // 104-111 -- wCGR0-wCGR7, ACC0-ACC7 (Intel wireless MMX)
-  UNW_ARM_WR0 = 112,
-  UNW_ARM_WR1 = 113,
-  UNW_ARM_WR2 = 114,
-  UNW_ARM_WR3 = 115,
-  UNW_ARM_WR4 = 116,
-  UNW_ARM_WR5 = 117,
-  UNW_ARM_WR6 = 118,
-  UNW_ARM_WR7 = 119,
-  UNW_ARM_WR8 = 120,
-  UNW_ARM_WR9 = 121,
-  UNW_ARM_WR10 = 122,
-  UNW_ARM_WR11 = 123,
-  UNW_ARM_WR12 = 124,
-  UNW_ARM_WR13 = 125,
-  UNW_ARM_WR14 = 126,
-  UNW_ARM_WR15 = 127,
-  // 128-133 -- SPSR, SPSR_{FIQ|IRQ|ABT|UND|SVC}
-  // 134-143 -- Reserved
-  // 144-150 -- R8_USR-R14_USR
-  // 151-157 -- R8_FIQ-R14_FIQ
-  // 158-159 -- R13_IRQ-R14_IRQ
-  // 160-161 -- R13_ABT-R14_ABT
-  // 162-163 -- R13_UND-R14_UND
-  // 164-165 -- R13_SVC-R14_SVC
-  // 166-191 -- Reserved
-  UNW_ARM_WC0 = 192,
-  UNW_ARM_WC1 = 193,
-  UNW_ARM_WC2 = 194,
-  UNW_ARM_WC3 = 195,
-  // 196-199 -- wC4-wC7 (Intel wireless MMX control)
-  // 200-255 -- Reserved
-  UNW_ARM_D0  = 256,
-  UNW_ARM_D1  = 257,
-  UNW_ARM_D2  = 258,
-  UNW_ARM_D3  = 259,
-  UNW_ARM_D4  = 260,
-  UNW_ARM_D5  = 261,
-  UNW_ARM_D6  = 262,
-  UNW_ARM_D7  = 263,
-  UNW_ARM_D8  = 264,
-  UNW_ARM_D9  = 265,
-  UNW_ARM_D10 = 266,
-  UNW_ARM_D11 = 267,
-  UNW_ARM_D12 = 268,
-  UNW_ARM_D13 = 269,
-  UNW_ARM_D14 = 270,
-  UNW_ARM_D15 = 271,
-  UNW_ARM_D16 = 272,
-  UNW_ARM_D17 = 273,
-  UNW_ARM_D18 = 274,
-  UNW_ARM_D19 = 275,
-  UNW_ARM_D20 = 276,
-  UNW_ARM_D21 = 277,
-  UNW_ARM_D22 = 278,
-  UNW_ARM_D23 = 279,
-  UNW_ARM_D24 = 280,
-  UNW_ARM_D25 = 281,
-  UNW_ARM_D26 = 282,
-  UNW_ARM_D27 = 283,
-  UNW_ARM_D28 = 284,
-  UNW_ARM_D29 = 285,
-  UNW_ARM_D30 = 286,
-  UNW_ARM_D31 = 287,
-  // 288-319 -- Reserved for VFP/Neon
-  // 320-8191 -- Reserved
-  // 8192-16383 -- Unspecified vendor co-processor register.
-};
-
-#endif

Removed: libcxxabi/trunk/include/unwind.h
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/include/unwind.h?rev=235758&view=auto
==============================================================================
--- libcxxabi/trunk/include/unwind.h (original)
+++ libcxxabi/trunk/include/unwind.h (removed)
@@ -1,329 +0,0 @@
-//===------------------------------- unwind.h -----------------------------===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//
-// C++ ABI Level 1 ABI documented at:
-//   http://mentorembedded.github.io/cxx-abi/abi-eh.html
-//
-//===----------------------------------------------------------------------===//
-
-#ifndef __UNWIND_H__
-#define __UNWIND_H__
-
-#include <stdint.h>
-#include <stddef.h>
-
-#if defined(__APPLE__)
-#define LIBUNWIND_UNAVAIL __attribute__ (( unavailable ))
-#else
-#define LIBUNWIND_UNAVAIL
-#endif
-
-#include <__cxxabi_config.h>
-
-typedef enum {
-  _URC_NO_REASON = 0,
-  _URC_OK = 0,
-  _URC_FOREIGN_EXCEPTION_CAUGHT = 1,
-  _URC_FATAL_PHASE2_ERROR = 2,
-  _URC_FATAL_PHASE1_ERROR = 3,
-  _URC_NORMAL_STOP = 4,
-  _URC_END_OF_STACK = 5,
-  _URC_HANDLER_FOUND = 6,
-  _URC_INSTALL_CONTEXT = 7,
-  _URC_CONTINUE_UNWIND = 8,
-#if LIBCXXABI_ARM_EHABI
-  _URC_FAILURE = 9
-#endif
-} _Unwind_Reason_Code;
-
-typedef enum {
-  _UA_SEARCH_PHASE = 1,
-  _UA_CLEANUP_PHASE = 2,
-  _UA_HANDLER_FRAME = 4,
-  _UA_FORCE_UNWIND = 8,
-  _UA_END_OF_STACK = 16 // gcc extension to C++ ABI
-} _Unwind_Action;
-
-typedef struct _Unwind_Context _Unwind_Context;   // opaque
-
-#if LIBCXXABI_ARM_EHABI
-typedef uint32_t _Unwind_State;
-
-static const _Unwind_State _US_VIRTUAL_UNWIND_FRAME   = 0;
-static const _Unwind_State _US_UNWIND_FRAME_STARTING  = 1;
-static const _Unwind_State _US_UNWIND_FRAME_RESUME    = 2;
-/* Undocumented flag for force unwinding. */
-static const _Unwind_State _US_FORCE_UNWIND           = 8;
-
-typedef uint32_t _Unwind_EHT_Header;
-
-struct _Unwind_Control_Block;
-typedef struct _Unwind_Control_Block _Unwind_Control_Block;
-typedef struct _Unwind_Control_Block _Unwind_Exception; /* Alias */
-
-struct _Unwind_Control_Block {
-  uint64_t exception_class;
-  void (*exception_cleanup)(_Unwind_Reason_Code, _Unwind_Control_Block*);
-
-  /* Unwinder cache, private fields for the unwinder's use */
-  struct {
-    uint32_t reserved1; /* init reserved1 to 0, then don't touch */
-    uint32_t reserved2;
-    uint32_t reserved3;
-    uint32_t reserved4;
-    uint32_t reserved5;
-  } unwinder_cache;
-
-  /* Propagation barrier cache (valid after phase 1): */
-  struct {
-    uint32_t sp;
-    uint32_t bitpattern[5];
-  } barrier_cache;
-
-  /* Cleanup cache (preserved over cleanup): */
-  struct {
-    uint32_t bitpattern[4];
-  } cleanup_cache;
-
-  /* Pr cache (for pr's benefit): */
-  struct {
-    uint32_t fnstart; /* function start address */
-    _Unwind_EHT_Header* ehtp; /* pointer to EHT entry header word */
-    uint32_t additional;
-    uint32_t reserved1;
-  } pr_cache;
-
-  long long int :0; /* Enforce the 8-byte alignment */
-};
-
-typedef _Unwind_Reason_Code (*_Unwind_Stop_Fn)
-      (_Unwind_State state,
-       _Unwind_Exception* exceptionObject,
-       struct _Unwind_Context* context);
-
-typedef _Unwind_Reason_Code (*__personality_routine)
-      (_Unwind_State state,
-       _Unwind_Exception* exceptionObject,
-       struct _Unwind_Context* context);
-#else
-struct _Unwind_Context;   // opaque
-struct _Unwind_Exception; // forward declaration
-typedef struct _Unwind_Exception _Unwind_Exception;
-
-struct _Unwind_Exception {
-  uint64_t exception_class;
-  void (*exception_cleanup)(_Unwind_Reason_Code reason,
-                            _Unwind_Exception *exc);
-  uintptr_t private_1; // non-zero means forced unwind
-  uintptr_t private_2; // holds sp that phase1 found for phase2 to use
-#ifndef __LP64__
-  // The gcc implementation of _Unwind_Exception used attribute mode on the
-  // above fields which had the side effect of causing this whole struct to
-  // round up to 32 bytes in size. To be more explicit, we add pad fields
-  // added for binary compatibility.
-  uint32_t reserved[3];
-#endif
-};
-
-typedef _Unwind_Reason_Code (*_Unwind_Stop_Fn)
-    (int version,
-     _Unwind_Action actions,
-     uint64_t exceptionClass,
-     _Unwind_Exception* exceptionObject,
-     struct _Unwind_Context* context,
-     void* stop_parameter );
-
-typedef _Unwind_Reason_Code (*__personality_routine)
-      (int version,
-       _Unwind_Action actions,
-       uint64_t exceptionClass,
-       _Unwind_Exception* exceptionObject,
-       struct _Unwind_Context* context);
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-//
-// The following are the base functions documented by the C++ ABI
-//
-#ifdef __USING_SJLJ_EXCEPTIONS__
-extern _Unwind_Reason_Code
-    _Unwind_SjLj_RaiseException(_Unwind_Exception *exception_object);
-extern void _Unwind_SjLj_Resume(_Unwind_Exception *exception_object);
-#else
-extern _Unwind_Reason_Code
-    _Unwind_RaiseException(_Unwind_Exception *exception_object);
-extern void _Unwind_Resume(_Unwind_Exception *exception_object);
-#endif
-extern void _Unwind_DeleteException(_Unwind_Exception *exception_object);
-
-#if LIBCXXABI_ARM_EHABI
-typedef enum {
-  _UVRSC_CORE = 0, /* integer register */
-  _UVRSC_VFP = 1, /* vfp */
-  _UVRSC_WMMXD = 3, /* Intel WMMX data register */
-  _UVRSC_WMMXC = 4 /* Intel WMMX control register */
-} _Unwind_VRS_RegClass;
-
-typedef enum {
-  _UVRSD_UINT32 = 0,
-  _UVRSD_VFPX = 1,
-  _UVRSD_UINT64 = 3,
-  _UVRSD_FLOAT = 4,
-  _UVRSD_DOUBLE = 5
-} _Unwind_VRS_DataRepresentation;
-
-typedef enum {
-  _UVRSR_OK = 0,
-  _UVRSR_NOT_IMPLEMENTED = 1,
-  _UVRSR_FAILED = 2
-} _Unwind_VRS_Result;
-
-extern void _Unwind_Complete(_Unwind_Exception* exception_object);
-
-extern _Unwind_VRS_Result
-_Unwind_VRS_Get(_Unwind_Context *context, _Unwind_VRS_RegClass regclass,
-                uint32_t regno, _Unwind_VRS_DataRepresentation representation,
-                void *valuep);
-
-extern _Unwind_VRS_Result
-_Unwind_VRS_Set(_Unwind_Context *context, _Unwind_VRS_RegClass regclass,
-                uint32_t regno, _Unwind_VRS_DataRepresentation representation,
-                void *valuep);
-
-extern _Unwind_VRS_Result
-_Unwind_VRS_Pop(_Unwind_Context *context, _Unwind_VRS_RegClass regclass,
-                uint32_t discriminator,
-                _Unwind_VRS_DataRepresentation representation);
-#endif
-
-extern uintptr_t _Unwind_GetGR(struct _Unwind_Context *context, int index);
-extern void _Unwind_SetGR(struct _Unwind_Context *context, int index,
-                          uintptr_t new_value);
-extern uintptr_t _Unwind_GetIP(struct _Unwind_Context *context);
-extern void _Unwind_SetIP(struct _Unwind_Context *, uintptr_t new_value);
-
-extern uintptr_t _Unwind_GetRegionStart(struct _Unwind_Context *context);
-extern uintptr_t
-    _Unwind_GetLanguageSpecificData(struct _Unwind_Context *context);
-#ifdef __USING_SJLJ_EXCEPTIONS__
-extern _Unwind_Reason_Code
-    _Unwind_SjLj_ForcedUnwind(_Unwind_Exception *exception_object,
-                              _Unwind_Stop_Fn stop, void *stop_parameter);
-#else
-extern _Unwind_Reason_Code
-    _Unwind_ForcedUnwind(_Unwind_Exception *exception_object,
-                         _Unwind_Stop_Fn stop, void *stop_parameter);
-#endif
-
-#ifdef __USING_SJLJ_EXCEPTIONS__
-typedef struct _Unwind_FunctionContext *_Unwind_FunctionContext_t;
-extern void _Unwind_SjLj_Register(_Unwind_FunctionContext_t fc);
-extern void _Unwind_SjLj_Unregister(_Unwind_FunctionContext_t fc);
-#endif
-
-//
-// The following are semi-suppoted extensions to the C++ ABI
-//
-
-//
-//  called by __cxa_rethrow().
-//
-#ifdef __USING_SJLJ_EXCEPTIONS__
-extern _Unwind_Reason_Code
-    _Unwind_SjLj_Resume_or_Rethrow(_Unwind_Exception *exception_object);
-#else
-extern _Unwind_Reason_Code
-    _Unwind_Resume_or_Rethrow(_Unwind_Exception *exception_object);
-#endif
-
-// _Unwind_Backtrace() is a gcc extension that walks the stack and calls the
-// _Unwind_Trace_Fn once per frame until it reaches the bottom of the stack
-// or the _Unwind_Trace_Fn function returns something other than _URC_NO_REASON.
-typedef _Unwind_Reason_Code (*_Unwind_Trace_Fn)(struct _Unwind_Context *,
-                                                void *);
-extern _Unwind_Reason_Code _Unwind_Backtrace(_Unwind_Trace_Fn, void *);
-
-// _Unwind_GetCFA is a gcc extension that can be called from within a
-// personality handler to get the CFA (stack pointer before call) of
-// current frame.
-extern uintptr_t _Unwind_GetCFA(struct _Unwind_Context *);
-
-
-// _Unwind_GetIPInfo is a gcc extension that can be called from within a
-// personality handler.  Similar to _Unwind_GetIP() but also returns in
-// *ipBefore a non-zero value if the instruction pointer is at or before the
-// instruction causing the unwind. Normally, in a function call, the IP returned
-// is the return address which is after the call instruction and may be past the
-// end of the function containing the call instruction.
-extern uintptr_t _Unwind_GetIPInfo(struct _Unwind_Context *context,
-                                   int *ipBefore);
-
-
-// __register_frame() is used with dynamically generated code to register the
-// FDE for a generated (JIT) code.  The FDE must use pc-rel addressing to point
-// to its function and optional LSDA.
-// __register_frame() has existed in all versions of Mac OS X, but in 10.4 and
-// 10.5 it was buggy and did not actually register the FDE with the unwinder.
-// In 10.6 and later it does register properly.
-extern void __register_frame(const void *fde);
-extern void __deregister_frame(const void *fde);
-
-// _Unwind_Find_FDE() will locate the FDE if the pc is in some function that has
-// an associated FDE. Note, Mac OS X 10.6 and later, introduces "compact unwind
-// info" which the runtime uses in preference to dwarf unwind info.  This
-// function will only work if the target function has an FDE but no compact
-// unwind info.
-struct dwarf_eh_bases {
-  uintptr_t tbase;
-  uintptr_t dbase;
-  uintptr_t func;
-};
-extern const void *_Unwind_Find_FDE(const void *pc, struct dwarf_eh_bases *);
-
-
-// This function attempts to find the start (address of first instruction) of
-// a function given an address inside the function.  It only works if the
-// function has an FDE (dwarf unwind info).
-// This function is unimplemented on Mac OS X 10.6 and later.  Instead, use
-// _Unwind_Find_FDE() and look at the dwarf_eh_bases.func result.
-extern void *_Unwind_FindEnclosingFunction(void *pc);
-
-// Mac OS X does not support text-rel and data-rel addressing so these functions
-// are unimplemented
-extern uintptr_t _Unwind_GetDataRelBase(struct _Unwind_Context *context)
-    LIBUNWIND_UNAVAIL;
-extern uintptr_t _Unwind_GetTextRelBase(struct _Unwind_Context *context)
-    LIBUNWIND_UNAVAIL;
-
-// Mac OS X 10.4 and 10.5 had implementations of these functions in
-// libgcc_s.dylib, but they never worked.
-/// These functions are no longer available on Mac OS X.
-extern void __register_frame_info_bases(const void *fde, void *ob, void *tb,
-                                        void *db) LIBUNWIND_UNAVAIL;
-extern void __register_frame_info(const void *fde, void *ob)
-    LIBUNWIND_UNAVAIL;
-extern void __register_frame_info_table_bases(const void *fde, void *ob,
-                                              void *tb, void *db)
-    LIBUNWIND_UNAVAIL;
-extern void __register_frame_info_table(const void *fde, void *ob)
-    LIBUNWIND_UNAVAIL;
-extern void __register_frame_table(const void *fde)
-    LIBUNWIND_UNAVAIL;
-extern void *__deregister_frame_info(const void *fde)
-    LIBUNWIND_UNAVAIL;
-extern void *__deregister_frame_info_bases(const void *fde)
-    LIBUNWIND_UNAVAIL;
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif // __UNWIND_H__

Removed: libcxxabi/trunk/test/unwind_01.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/test/unwind_01.pass.cpp?rev=235758&view=auto
==============================================================================
--- libcxxabi/trunk/test/unwind_01.pass.cpp (original)
+++ libcxxabi/trunk/test/unwind_01.pass.cpp (removed)
@@ -1,96 +0,0 @@
-//===------------------------- unwind_01.cpp ------------------------------===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#include <assert.h>
-
-struct A
-{
-    static int count;
-    int id_;
-    A() : id_(++count) {}
-    ~A() {assert(id_ == count--);}
-
-private:
-    A(const A&);
-    A& operator=(const A&);
-};
-
-int A::count = 0;
-
-struct B
-{
-    static int count;
-    int id_;
-    B() : id_(++count) {}
-    ~B() {assert(id_ == count--);}
-
-private:
-    B(const B&);
-    B& operator=(const B&);
-};
-
-int B::count = 0;
-
-struct C
-{
-    static int count;
-    int id_;
-    C() : id_(++count) {}
-    ~C() {assert(id_ == count--);}
-
-private:
-    C(const C&);
-    C& operator=(const C&);
-};
-
-int C::count = 0;
-
-void f2()
-{
-    C c;
-    A a;
-    throw 55;
-    B b;
-}
-
-void f1()
-{
-    A a;
-    B b;
-    f2();
-    C c;
-}
-
-int main()
-{
-    try
-    {
-        f1();
-        assert(false);
-    }
-    catch (int* i)
-    {
-        assert(false);
-    }
-    catch (long i)
-    {
-        assert(false);
-    }
-    catch (int i)
-    {
-        assert(i == 55);
-    }
-    catch (...)
-    {
-        assert(false);
-    }
-    assert(A::count == 0);
-    assert(B::count == 0);
-    assert(C::count == 0);
-}

Removed: libcxxabi/trunk/test/unwind_02.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/test/unwind_02.pass.cpp?rev=235758&view=auto
==============================================================================
--- libcxxabi/trunk/test/unwind_02.pass.cpp (original)
+++ libcxxabi/trunk/test/unwind_02.pass.cpp (removed)
@@ -1,96 +0,0 @@
-//===------------------------- unwind_02.cpp ------------------------------===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#include <assert.h>
-
-struct A
-{
-    static int count;
-    int id_;
-    A() : id_(++count) {}
-    ~A() {assert(id_ == count--);}
-
-private:
-    A(const A&);
-    A& operator=(const A&);
-};
-
-int A::count = 0;
-
-struct B
-{
-    static int count;
-    int id_;
-    B() : id_(++count) {}
-    ~B() {assert(id_ == count--);}
-
-private:
-    B(const B&);
-    B& operator=(const B&);
-};
-
-int B::count = 0;
-
-struct C
-{
-    static int count;
-    int id_;
-    C() : id_(++count) {}
-    ~C() {assert(id_ == count--);}
-
-private:
-    C(const C&);
-    C& operator=(const C&);
-};
-
-int C::count = 0;
-
-void f2()
-{
-    C c;
-    A a;
-    throw 55;
-    B b;
-}
-
-void f1() throw (long, char, int, double)
-{
-    A a;
-    B b;
-    f2();
-    C c;
-}
-
-int main()
-{
-    try
-    {
-        f1();
-        assert(false);
-    }
-    catch (int* i)
-    {
-        assert(false);
-    }
-    catch (long i)
-    {
-        assert(false);
-    }
-    catch (int i)
-    {
-        assert(i == 55);
-    }
-    catch (...)
-    {
-        assert(false);
-    }
-    assert(A::count == 0);
-    assert(B::count == 0);
-    assert(C::count == 0);
-}

Removed: libcxxabi/trunk/test/unwind_03.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/test/unwind_03.pass.cpp?rev=235758&view=auto
==============================================================================
--- libcxxabi/trunk/test/unwind_03.pass.cpp (original)
+++ libcxxabi/trunk/test/unwind_03.pass.cpp (removed)
@@ -1,102 +0,0 @@
-//===------------------------- unwind_03.cpp ------------------------------===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#include <exception>
-#include <stdlib.h>
-#include <assert.h>
-
-struct A
-{
-    static int count;
-    int id_;
-    A() : id_(++count) {}
-    ~A() {assert(id_ == count--);}
-
-private:
-    A(const A&);
-    A& operator=(const A&);
-};
-
-int A::count = 0;
-
-struct B
-{
-    static int count;
-    int id_;
-    B() : id_(++count) {}
-    ~B() {assert(id_ == count--);}
-
-private:
-    B(const B&);
-    B& operator=(const B&);
-};
-
-int B::count = 0;
-
-struct C
-{
-    static int count;
-    int id_;
-    C() : id_(++count) {}
-    ~C() {assert(id_ == count--);}
-
-private:
-    C(const C&);
-    C& operator=(const C&);
-};
-
-int C::count = 0;
-
-void f2()
-{
-    C c;
-    A a;
-    throw 55;
-    B b;
-}
-
-void f1() throw (long, char, double)
-{
-    A a;
-    B b;
-    f2();
-    C c;
-}
-
-void u_handler()
-{
-    exit(0);
-}
-
-int main()
-{
-    std::set_unexpected(u_handler);
-    try
-    {
-        f1();
-        assert(false);
-    }
-    catch (int* i)
-    {
-        assert(false);
-    }
-    catch (long i)
-    {
-        assert(false);
-    }
-    catch (int i)
-    {
-        assert(i == 55);
-    }
-    catch (...)
-    {
-        assert(false);
-    }
-    assert(false);
-}

Removed: libcxxabi/trunk/test/unwind_04.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/test/unwind_04.pass.cpp?rev=235758&view=auto
==============================================================================
--- libcxxabi/trunk/test/unwind_04.pass.cpp (original)
+++ libcxxabi/trunk/test/unwind_04.pass.cpp (removed)
@@ -1,108 +0,0 @@
-//===------------------------- unwind_04.cpp ------------------------------===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#include <exception>
-#include <stdlib.h>
-#include <assert.h>
-
-struct A
-{
-    static int count;
-    int id_;
-    A() : id_(++count) {}
-    ~A() {assert(id_ == count--);}
-
-private:
-    A(const A&);
-    A& operator=(const A&);
-};
-
-int A::count = 0;
-
-struct B
-{
-    static int count;
-    int id_;
-    B() : id_(++count) {}
-    ~B() {assert(id_ == count--);}
-
-private:
-    B(const B&);
-    B& operator=(const B&);
-};
-
-int B::count = 0;
-
-struct C
-{
-    static int count;
-    int id_;
-    C() : id_(++count) {}
-    ~C() {assert(id_ == count--);}
-
-private:
-    C(const C&);
-    C& operator=(const C&);
-};
-
-int C::count = 0;
-
-void f2()
-{
-    C c;
-    A a;
-    throw 55;
-    B b;
-}
-
-void f1() throw (long, char, double)
-{
-    A a;
-    B b;
-    f2();
-    C c;
-}
-
-void u_handler()
-{
-    throw 'a';
-}
-
-int main()
-{
-    std::set_unexpected(u_handler);
-    try
-    {
-        f1();
-        assert(false);
-    }
-    catch (int* i)
-    {
-        assert(false);
-    }
-    catch (long i)
-    {
-        assert(false);
-    }
-    catch (int i)
-    {
-        assert(false);
-    }
-    catch (char c)
-    {
-        assert(c == 'a');
-    }
-    catch (...)
-    {
-        assert(false);
-    }
-    assert(A::count == 0);
-    assert(B::count == 0);
-    assert(C::count == 0);
-}

Removed: libcxxabi/trunk/test/unwind_05.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/test/unwind_05.pass.cpp?rev=235758&view=auto
==============================================================================
--- libcxxabi/trunk/test/unwind_05.pass.cpp (original)
+++ libcxxabi/trunk/test/unwind_05.pass.cpp (removed)
@@ -1,112 +0,0 @@
-//===------------------------- unwind_05.cpp ------------------------------===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#include <exception>
-#include <stdlib.h>
-#include <assert.h>
-
-struct A
-{
-    static int count;
-    int id_;
-    A() : id_(++count) {}
-    ~A() {assert(id_ == count--);}
-
-private:
-    A(const A&);
-    A& operator=(const A&);
-};
-
-int A::count = 0;
-
-struct B
-{
-    static int count;
-    int id_;
-    B() : id_(++count) {}
-    ~B() {assert(id_ == count--);}
-
-private:
-    B(const B&);
-    B& operator=(const B&);
-};
-
-int B::count = 0;
-
-struct C
-{
-    static int count;
-    int id_;
-    C() : id_(++count) {}
-    ~C() {assert(id_ == count--);}
-
-private:
-    C(const C&);
-    C& operator=(const C&);
-};
-
-int C::count = 0;
-
-void f2()
-{
-    C c;
-    A a;
-    throw 55;
-    B b;
-}
-
-void f1() throw (long, char, double, std::bad_exception)
-{
-    A a;
-    B b;
-    f2();
-    C c;
-}
-
-void u_handler()
-{
-    throw;
-}
-
-int main()
-{
-    std::set_unexpected(u_handler);
-    try
-    {
-        f1();
-        assert(false);
-    }
-    catch (int* i)
-    {
-        assert(false);
-    }
-    catch (long i)
-    {
-        assert(false);
-    }
-    catch (int i)
-    {
-        assert(false);
-    }
-    catch (char c)
-    {
-        assert(false);
-    }
-    catch (const std::bad_exception& e)
-    {
-        assert(true);
-    }
-    catch (...)
-    {
-        assert(false);
-    }
-    assert(A::count == 0);
-    assert(B::count == 0);
-    assert(C::count == 0);
-}

Removed: libcxxabi/trunk/test/unwind_06.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/test/unwind_06.pass.cpp?rev=235758&view=auto
==============================================================================
--- libcxxabi/trunk/test/unwind_06.pass.cpp (original)
+++ libcxxabi/trunk/test/unwind_06.pass.cpp (removed)
@@ -1,257 +0,0 @@
-//===------------------------- unwind_06.cpp ------------------------------===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#include <exception>
-#include <stdlib.h>
-#include <assert.h>
-#include <stdio.h>
-
-// Compile with -Os to get compiler uses float registers to hold float variables
-
-double get_(int x) { return (double)x; }
-
-double (* volatile get)(int) = get_;
-
-volatile int counter;
-
-double try1(bool v) {
-  double a = get(0);
-  double b = get(1);
-  for (counter = 100; counter; --counter)
-    a += get(1) + b;
-  if (v) throw 10;
-  return get(0)+a+b;
-}
-
-double try2(bool v) {
-  double a = get(0);
-  double b = get(1);
-  double c = get(2);
-  for (counter = 100; counter; --counter)
-    a += get(1) + b + c;
-  if (v) throw 10;
-  return get(0)+a+b+c;
-}
-
-double try3(bool v) {
-  double a = get(0);
-  double b = get(1);
-  double c = get(2);
-  double d = get(3);
-  for (counter = 100; counter; --counter)
-    a += get(1) + b + c + d;
-  if (v) throw 10;
-  return get(0)+a+b+c+d;
-}
-
-double try4(bool v) {
-  double a = get(0);
-  double b = get(0);
-  double c = get(0);
-  double d = get(0);
-  double e = get(0);
-  for (counter = 100; counter; --counter)
-    a += get(1) + b+c+d+e;
-  if (v) throw 10;
-  return get(0)+a+b+c+d+e;
-}
-
-double try5(bool v) {
-  double a = get(0);
-  double b = get(0);
-  double c = get(0);
-  double d = get(0);
-  double e = get(0);
-  double f = get(0);
-  for (counter = 100; counter; --counter)
-    a += get(1) + b+c+d+e+f;
-  if (v) throw 10;
-  return get(0)+a+b+c+d+e+f;
-}
-
-double try6(bool v) {
-  double a = get(0);
-  double b = get(0);
-  double c = get(0);
-  double d = get(0);
-  double e = get(0);
-  double f = get(0);
-  double g = get(0);
-  for (counter = 100; counter; --counter)
-    a += get(1) + b+c+d+e+f+g;
-  if (v) throw 10;
-  return get(0)+a+b+c+d+e+f+g;
-}
-
-double try7(bool v) {
-  double a = get(0);
-  double b = get(0);
-  double c = get(0);
-  double d = get(0);
-  double e = get(0);
-  double f = get(0);
-  double g = get(0);
-  double h = get(0);
-  for (counter = 100; counter; --counter)
-    a += get(1) + b+c+d+e+f+g;
-  if (v) throw 10;
-  return get(0)+a+b+c+d+e+f+g;
-}
-
-double try8(bool v) {
-  double a = get(0);
-  double b = get(0);
-  double c = get(0);
-  double d = get(0);
-  double e = get(0);
-  double f = get(0);
-  double g = get(0);
-  double h = get(0);
-  double i = get(0);
-  for (counter = 100; counter; --counter)
-    a += get(1) + b+c+d+e+f+g+i;
-  if (v) throw 10;
-  return get(0)+a+b+c+d+e+f+g+i;
-}
-
-
-
-
-
-double foo()
-{
-  double a = get(1);
-  double b = get(2);
-  double c = get(3);
-  double d = get(4);
-  double e = get(5);
-  double f = get(6);
-  double g = get(7);
-  double h = get(8);
-  try {
-    try1(true);    
-  }
-  catch (int e) {
-  }
-  assert(a == get(1));
-  assert(b == get(2));
-  assert(c == get(3));
-  assert(d == get(4));
-  assert(e == get(5));
-  assert(f == get(6));
-  assert(g == get(7));
-  assert(h == get(8));
-  
-  try {
-    try2(true);    
-  }
-  catch (int e) {
-  }
-  assert(a == get(1));
-  assert(b == get(2));
-  assert(c == get(3));
-  assert(d == get(4));
-  assert(e == get(5));
-  assert(f == get(6));
-  assert(g == get(7));
-  assert(h == get(8));
-  
-  try {
-    try3(true);    
-  }
-  catch (int e) {
-  }
-  assert(a == get(1));
-  assert(b == get(2));
-  assert(c == get(3));
-  assert(d == get(4));
-  assert(e == get(5));
-  assert(f == get(6));
-  assert(g == get(7));
-  assert(h == get(8));
-  
-  try {
-    try4(true);    
-  }
-  catch (int e) {
-  }
-  assert(a == get(1));
-  assert(b == get(2));
-  assert(c == get(3));
-  assert(d == get(4));
-  assert(e == get(5));
-  assert(f == get(6));
-  assert(g == get(7));
-  assert(h == get(8));
-  
-  try {
-    try5(true);    
-  }
-  catch (int e) {
-  }
-  assert(a == get(1));
-  assert(b == get(2));
-  assert(c == get(3));
-  assert(d == get(4));
-  assert(e == get(5));
-  assert(f == get(6));
-  assert(g == get(7));
-  assert(h == get(8));
-  
-  try {
-    try6(true);    
-  }
-  catch (int e) {
-  }
-  assert(a == get(1));
-  assert(b == get(2));
-  assert(c == get(3));
-  assert(d == get(4));
-  assert(e == get(5));
-  assert(f == get(6));
-  assert(g == get(7));
-  assert(h == get(8));
-  
-  try {
-    try7(true);    
-  }
-  catch (int e) {
-  }
-  assert(a == get(1));
-  assert(b == get(2));
-  assert(c == get(3));
-  assert(d == get(4));
-  assert(e == get(5));
-  assert(f == get(6));
-  assert(g == get(7));
-  assert(h == get(8));
-  
-  try {
-    try8(true);    
-  }
-  catch (int e) {
-  }
-  assert(a == get(1));
-  assert(b == get(2));
-  assert(c == get(3));
-  assert(d == get(4));
-  assert(e == get(5));
-  assert(f == get(6));
-  assert(g == get(7));
-  assert(h == get(8));
-
-  return a+b+c+d+e+f+g+h;
-}
-
-
-
-int main()
-{
-  foo();
-}





More information about the cfe-commits mailing list