Some more -Wundef issues.

This should be all of them for Linux. Might be some for the others.

llvm-svn: 228267
This commit is contained in:
Dan Albert 2015-02-05 02:44:50 +00:00
parent 8645ea65e5
commit 3be4efa341
3 changed files with 8 additions and 8 deletions

View File

@ -127,7 +127,7 @@ struct _Unwind_Exception {
_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
#if !__LP64__
#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

View File

@ -35,7 +35,7 @@ namespace libunwind {
#include "Registers.hpp"
#if LIBCXXABI_ARM_EHABI
#if __linux__
#ifdef __linux__
typedef long unsigned int *_Unwind_Ptr;
extern "C" _Unwind_Ptr __gnu_Unwind_Find_exidx(_Unwind_Ptr addr, int *len);
@ -91,7 +91,7 @@ struct UnwindInfoSections {
/// making local unwinds fast.
class __attribute__((visibility("hidden"))) LocalAddressSpace {
public:
#if __LP64__
#ifdef __LP64__
typedef uint64_t pint_t;
typedef int64_t sint_t;
#else
@ -142,7 +142,7 @@ public:
};
inline uintptr_t LocalAddressSpace::getP(pint_t addr) {
#if __LP64__
#ifdef __LP64__
return get64(addr);
#else
return get32(addr);

View File

@ -27,7 +27,7 @@ static const uint64_t kOurDependentExceptionClass = 0x434C4E47432B2B01; // CLNGC
static const uint64_t get_vendor_and_language = 0xFFFFFFFFFFFFFF00; // mask for CLNGC++
struct __cxa_exception {
#if __LP64__ || LIBCXXABI_ARM_EHABI
#if defined(__LP64__) || LIBCXXABI_ARM_EHABI
// This is a new field to support C++ 0x exception_ptr.
// For binary compatibility it is at the start of this
// struct which is prepended to the object thrown in
@ -56,7 +56,7 @@ struct __cxa_exception {
void *adjustedPtr;
#endif
#if !__LP64__ && !LIBCXXABI_ARM_EHABI
#if !defined(__LP64__) && !LIBCXXABI_ARM_EHABI
// This is a new field to support C++ 0x exception_ptr.
// For binary compatibility it is placed where the compiler
// previously adding padded to 64-bit align unwindHeader.
@ -70,7 +70,7 @@ struct __cxa_exception {
// The layout of this structure MUST match the layout of __cxa_exception, with
// primaryException instead of referenceCount.
struct __cxa_dependent_exception {
#if __LP64__ || LIBCXXABI_ARM_EHABI
#if defined(__LP64__) || LIBCXXABI_ARM_EHABI
void* primaryException;
#endif
@ -94,7 +94,7 @@ struct __cxa_dependent_exception {
void *adjustedPtr;
#endif
#if !__LP64__ && !LIBCXXABI_ARM_EHABI
#if !defined(__LP64__) && !LIBCXXABI_ARM_EHABI
void* primaryException;
#endif