r264226 - NFC: clarify comment on lock-free macros

JF Bastien via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 23 17:20:44 PDT 2016


Author: jfb
Date: Wed Mar 23 19:20:44 2016
New Revision: 264226

URL: http://llvm.org/viewvc/llvm-project?rev=264226&view=rev
Log:
NFC: clarify comment on lock-free macros

Used by both libstdc++ and libc++.

Modified:
    cfe/trunk/lib/Frontend/InitPreprocessor.cpp

Modified: cfe/trunk/lib/Frontend/InitPreprocessor.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/InitPreprocessor.cpp?rev=264226&r1=264225&r2=264226&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/InitPreprocessor.cpp (original)
+++ cfe/trunk/lib/Frontend/InitPreprocessor.cpp Wed Mar 23 19:20:44 2016
@@ -811,7 +811,7 @@ static void InitializePredefinedMacros(c
     // FIXME: This is target-dependent.
     Builder.defineMacro("__GCC_ATOMIC_TEST_AND_SET_TRUEVAL", "1");
 
-    // Used by libstdc++ to implement ATOMIC_<foo>_LOCK_FREE.
+    // Used by libc++ and libstdc++ to implement ATOMIC_<foo>_LOCK_FREE.
     unsigned InlineWidthBits = TI.getMaxAtomicInlineWidth();
 #define DEFINE_LOCK_FREE_MACRO(TYPE, Type) \
     Builder.defineMacro("__GCC_ATOMIC_" #TYPE "_LOCK_FREE", \




More information about the cfe-commits mailing list