Summary:
Currently users need to set call `using namespace llvm;`, with this change it's no longer needed.
Sponsored by <The NetBSD Foundation>
Reviewers: labath, emaste, joerg, clayborg, mehdi_amini
Reviewed By: mehdi_amini
Subscribers: chandlerc
Differential Revision: https://reviews.llvm.org/D29296
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293902
91177308-0d34-0410-b5e6-
96231b3b80d8
/// This macro is the only way you should define your once flag for LLVM's
/// call_once.
-#define LLVM_DEFINE_ONCE_FLAG(flag) static once_flag flag = Uninitialized
+#define LLVM_DEFINE_ONCE_FLAG(flag) \
+ static ::llvm::once_flag flag = ::llvm::Uninitialized
#endif