diff options
author | Jan Vorlicek <janvorli@microsoft.com> | 2015-02-20 15:27:55 +0100 |
---|---|---|
committer | Jan Vorlicek <janvorli@microsoft.com> | 2015-02-20 15:27:55 +0100 |
commit | 71697cc71ffbae76a3ee74330374e3a5449f8a12 (patch) | |
tree | 5d2d41e9967d8ce7c32e5b62e84c8cfbbf023e33 | |
parent | 8eb59dba9ed6e7a46747bc0b3e75cc720dd536f0 (diff) | |
download | coreclr-71697cc71ffbae76a3ee74330374e3a5449f8a12.tar.gz coreclr-71697cc71ffbae76a3ee74330374e3a5449f8a12.tar.bz2 coreclr-71697cc71ffbae76a3ee74330374e3a5449f8a12.zip |
Reflect PR feedback
Remove few classes / macros from pal.h that are not used anymore.
Fix some line continuation backslash identations.
-rw-r--r-- | src/pal/inc/pal.h | 86 | ||||
-rw-r--r-- | src/pal/src/arch/i386/context2.S (renamed from src/pal/src/arch/i386/context2.s) | 0 |
2 files changed, 20 insertions, 66 deletions
diff --git a/src/pal/inc/pal.h b/src/pal/inc/pal.h index 93a379956d..a3fd1f434f 100644 --- a/src/pal/inc/pal.h +++ b/src/pal/inc/pal.h @@ -5894,53 +5894,7 @@ typedef EXCEPTION_DISPOSITION (*PFN_PAL_EXCEPTION_FILTER)( PAL_DISPATCHER_CONTEXT *DispatcherContext, void *pvParam); -#define DEBUG_OK_TO_RETURN_BEGIN(arg) -#define DEBUG_OK_TO_RETURN_END(arg) - #ifdef __cplusplus -class PAL_CatchHolder -{ -public: - PAL_CatchHolder(_Unwind_Exception *exceptionObject) - { - __cxa_begin_catch(exceptionObject); - } - - ~PAL_CatchHolder() - { - __cxa_end_catch(); - } -}; - -class PAL_ExceptionHolder -{ -private: - _Unwind_Exception *m_exceptionObject; -public: - PAL_ExceptionHolder(_Unwind_Exception *exceptionObject) - { - m_exceptionObject = exceptionObject; - } - - ~PAL_ExceptionHolder() - { - if (m_exceptionObject) - { - _Unwind_DeleteException(m_exceptionObject); - } - } - - void SuppressRelease() - { - m_exceptionObject = NULL; - } -}; - -class PAL_NoHolder -{ -public: - void SuppressRelease() {} -}; struct PAL_SEHException { @@ -5972,7 +5926,7 @@ public: #define PAL_EXCEPT(dispositionExpression) \ }; \ - const bool isFinally = false; \ + const bool isFinally = false; \ auto finallyBlock = []() {}; \ try \ { \ @@ -5990,27 +5944,27 @@ public: #define PAL_EXCEPT_FILTER(filter) PAL_EXCEPT(filter(&ex.ExceptionPointers, __param)) -#define PAL_FINALLY \ - }; \ - const bool isFinally = true; \ - auto finallyBlock = [&]() \ +#define PAL_FINALLY \ + }; \ + const bool isFinally = true; \ + auto finallyBlock = [&]() \ { -#define PAL_ENDTRY \ - }; \ - if (isFinally) \ - { \ - try \ - { \ - tryBlock(__param); \ - } \ - catch (...) \ - { \ - finallyBlock(); \ - throw; \ - } \ - finallyBlock(); \ - } \ +#define PAL_ENDTRY \ + }; \ + if (isFinally) \ + { \ + try \ + { \ + tryBlock(__param); \ + } \ + catch (...) \ + { \ + finallyBlock(); \ + throw; \ + } \ + finallyBlock(); \ + } \ } #endif // FEATURE_PAL_SXS diff --git a/src/pal/src/arch/i386/context2.s b/src/pal/src/arch/i386/context2.S index 6ec622a51b..6ec622a51b 100644 --- a/src/pal/src/arch/i386/context2.s +++ b/src/pal/src/arch/i386/context2.S |