[x86/Linux] Port 'CallerStackFrame::FromRegDisplay' (#9021)
authorJonghyun Park <parjong@gmail.com>
Fri, 20 Jan 2017 09:30:49 +0000 (18:30 +0900)
committerJan Vorlicek <janvorli@microsoft.com>
Fri, 20 Jan 2017 09:30:49 +0000 (10:30 +0100)
src/inc/stackframe.h

index 11977e9..940951d 100644 (file)
@@ -115,16 +115,13 @@ struct CallerStackFrame : StackFrame
     {
     }
 
+#ifdef WIN64EXCEPTIONS
     static inline CallerStackFrame FromRegDisplay(REGDISPLAY* pRD)
     {
-#if defined(_TARGET_AMD64_) || defined(_TARGET_ARM_) || defined(_TARGET_ARM64_)
         _ASSERTE(pRD->IsCallerSPValid || pRD->IsCallerContextValid);
         return CallerStackFrame(GetSP(pRD->pCallerContext));
-#else  // !_TARGET_AMD64_ && !_TARGET_ARM_ && !_TARGET_ARM64_
-        _ASSERTE(!"CallerStackFrame::FromRegDisplay() - NYI on this platform");
-        return CallerStackFrame();
-#endif // !_TARGET_AMD64_ && !_TARGET_ARM_ && !_TARGET_ARM64_
     }
+#endif // WIN64EXCEPTIONS
 };
 
 #endif  // __STACKFRAME_H