[Support] Move the static initializer install_out_memory_new_handler to InitLLVM
authorFangrui Song <maskray@google.com>
Fri, 12 Jul 2019 16:23:25 +0000 (16:23 +0000)
committerFangrui Song <maskray@google.com>
Fri, 12 Jul 2019 16:23:25 +0000 (16:23 +0000)
commite99dee82b0bd90e3f51482de3b18a4ae0e040eb6
tree2ab92804d1c48613a72f9ebd77e1062b7fd5bb87
parentf72fd0fada5d41b8362e7ea95b1f63806c08a21e
[Support] Move the static initializer install_out_memory_new_handler to InitLLVM

An application linking against LLVMSupport should not get the gratuitous
set::std_new_handler call.

Reviewed By: jfb

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

llvm-svn: 365915
llvm/include/llvm/Support/InitLLVM.h
llvm/lib/Support/ErrorHandling.cpp
llvm/lib/Support/InitLLVM.cpp