mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-27 03:48:33 +00:00
Provide a placement new definition for the SEH version of UnwindCursor
This fixes compilation after SVN r352966 in SEH mode. llvm-svn: 353010
This commit is contained in:
parent
8799caee8d
commit
6ccad0a7d0
@ -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; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user