[x86/Linux] Clean up EXCEPTION_REGISTRATION_RECORD (#9895)
authorJonghyun Park <parjong@gmail.com>
Thu, 2 Mar 2017 07:50:11 +0000 (16:50 +0900)
committerJan Kotas <jkotas@microsoft.com>
Thu, 2 Mar 2017 07:50:11 +0000 (23:50 -0800)
src/pal/inc/rt/palrt.h
src/vm/frames.h

index 059d3a6..9360058 100644 (file)
@@ -1491,11 +1491,6 @@ typedef struct _DISPATCHER_CONTEXT {
 
 #elif defined(_X86_)
 
-typedef struct _EXCEPTION_REGISTRATION_RECORD {
-    struct _EXCEPTION_REGISTRATION_RECORD *Next;
-    PEXCEPTION_ROUTINE Handler;
-} EXCEPTION_REGISTRATION_RECORD;
-
 typedef struct _DISPATCHER_CONTEXT {
     DWORD ControlPc;
     DWORD ImageBase;
index b009f22..747cbd6 100644 (file)
@@ -2846,7 +2846,7 @@ protected:
 };
 #endif // _TARGET_X86_ && !FEATURE_PAL
 
-#if defined(_TARGET_X86_)
+#if defined(_TARGET_X86_) && defined(FEATURE_COMINTEROP)
 //-------------------------------------------------------------------------
 // Exception handler for COM to managed frame
 //  and the layout of the exception registration record structure in the stack
@@ -2866,7 +2866,7 @@ struct ComToManagedExRecord
         return &m_frame;
     }
 };
-#endif // _TARGET_X86_
+#endif // _TARGET_X86_ && FEATURE_COMINTEROP
 
 
 //------------------------------------------------------------------------