Replace std::call_once with llvm:call_once
authorKamil Rytarowski <n54@gmx.com>
Wed, 24 May 2017 18:31:48 +0000 (18:31 +0000)
committerKamil Rytarowski <n54@gmx.com>
Wed, 24 May 2017 18:31:48 +0000 (18:31 +0000)
commite739e49c0fad88faf72a309fca0c46bdd4fa20f5
tree56d891a61dc8430740b788a3e264a1775ba286ec
parent466c82b74f72c6b122e97a3a4c903c173045ef08
Replace std::call_once with llvm:call_once

Summary:
This is required on some platforms, as GNU libstdc++ std::call_once is known to be buggy.

This fixes operation of LLD on at least NetBSD and perhaps OpenBSD and Linux PowerPC.

The same change has been introduced to LLVM and LLDB.

Reviewers: ruiu

Reviewed By: ruiu

Subscribers: emaste, #lld

Tags: #lld

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

llvm-svn: 303788
lld/ELF/InputSection.cpp
lld/ELF/InputSection.h