[Lldb-commits] [PATCH] D29288: Switch std::call_once to llvm::call_once
Mehdi AMINI via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Jan 30 10:33:02 PST 2017
mehdi_amini added a comment.
In https://reviews.llvm.org/D29288#660677, @krytarowski wrote:
> In https://reviews.llvm.org/D29288#660636, @clayborg wrote:
> > Be very careful when using this, you can't change member variables that used to be std::once to be statics. We also don't need the llvm namespace to be included with "using namespace llvm;" in many of the files.
> `using namespace llvm;` is currently required in order to get this functional:
What about just updating the macro in LLVM to make it not needed?
#define LLVM_DEFINE_ONCE_FLAG(flag) static llvm::once_flag flag = Uninitialized
More information about the lldb-commits