diff options
author | Martin Storsjo <martin@martin.st> | 2019-02-04 01:16:53 +0300 |
---|---|---|
committer | Martin Storsjo <martin@martin.st> | 2019-02-04 01:16:53 +0300 |
commit | 6ccad0a7d03b672e8653dfd4722ac10e26d3901f (patch) | |
tree | 188958aa817336d05bee36174caffb05b81a5bc9 /libunwind/src/UnwindCursor.hpp | |
parent | 8799caee8db383e5edfee03e68a5b94a1ddffe25 (diff) |
Provide a placement new definition for the SEH version of UnwindCursor
This fixes compilation after SVN r352966 in SEH mode.
llvm-svn: 353010
Diffstat (limited to 'libunwind/src/UnwindCursor.hpp')
-rw-r--r-- | libunwind/src/UnwindCursor.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libunwind/src/UnwindCursor.hpp b/libunwind/src/UnwindCursor.hpp index 406f229ce62e..836de38a2886 100644 --- a/libunwind/src/UnwindCursor.hpp +++ b/libunwind/src/UnwindCursor.hpp @@ -482,6 +482,10 @@ public: DISPATCHER_CONTEXT *getDispatcherContext() { return &_dispContext; } void setDispatcherContext(DISPATCHER_CONTEXT *disp) { _dispContext = *disp; } + // libunwind does not and should not depend on C++ library which means that we + // need our own defition of inline placement new. + static void *operator new(size_t, UnwindCursor<A, R> *p) { return p; } + private: pint_t getLastPC() const { return _dispContext.ControlPc; } |