Drop the dependency on <algorithm>, add placement new inline
authorPetr Hosek <phosek@chromium.org>
Tue, 29 Jan 2019 22:26:18 +0000 (22:26 +0000)
committerPetr Hosek <phosek@chromium.org>
Tue, 29 Jan 2019 22:26:18 +0000 (22:26 +0000)
commit7fac51724f8875fb063a5ec7079b0172b3387717
tree1f8ae9f9703cc4f2d280c5ff35c247400cb22c3e
parentfbf40f4500c6233bcb502740c99911b416ea7955
Drop the dependency on <algorithm>, add placement new inline

We haven't eliminated C++ library dependency altogether in D57251,
UnwindCursor.hpp had an unused dependency on <algorithm> which was
pulling in other C++ headers. Removing that dependency also revealed
(correctly) that we need our own global placement new declaration. Now
libunwind should be independent of the C++ library.

Differential Revision: https://reviews.llvm.org/D57262

llvm-svn: 352553
libunwind/CMakeLists.txt
libunwind/src/Unwind-EHABI.cpp
libunwind/src/Unwind-seh.cpp
libunwind/src/UnwindCursor.hpp
libunwind/src/libunwind.cpp