Currently users need to set call using namespace llvm;, with this change it's no longer needed.
Sponsored by <The NetBSD Foundation>
Differential D29296
Make llvm::call_once more convenient to reuse out of LLVM krytarowski on Jan 30 2017, 12:25 PM. Authored by
Details Currently users need to set call using namespace llvm;, with this change it's no longer needed. Sponsored by <The NetBSD Foundation>
Diff Detail
Event TimelineComment Actions If we want to make this namespace aware, I wonder if we shouldn't also be explicitly and use ::llvm::once_flag etc. But in general, LGTM. Comment Actions The idea of this seems fine as-is, but it should be clang-formatted to fit in 80 columns. Comment Actions LGTM. I'd go with @joerg suggestion though (but you don't need to submit another patch, just go ahead and commit). |