[llvm] r180104 - c vs c++ mistake in header file typedef for AtomicRMW fix in rev 180100.

Carlo Kok ck at remobjects.com
Tue Apr 23 06:45:37 PDT 2013


Author: carlokok
Date: Tue Apr 23 08:45:37 2013
New Revision: 180104

URL: http://llvm.org/viewvc/llvm-project?rev=180104&view=rev
Log:
c vs c++ mistake in header file typedef for AtomicRMW fix in rev 180100.

Modified:
    llvm/trunk/include/llvm-c/Core.h

Modified: llvm/trunk/include/llvm-c/Core.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/Core.h?rev=180104&r1=180103&r2=180104&view=diff
==============================================================================
--- llvm/trunk/include/llvm-c/Core.h (original)
+++ llvm/trunk/include/llvm-c/Core.h Tue Apr 23 08:45:37 2013
@@ -348,7 +348,7 @@ typedef enum {
   LLVMLocalExecTLSModel
 } LLVMThreadLocalMode;
 
-enum LLVMAtomicOrdering {
+typedef enum {
   LLVMAtomicOrderingNotAtomic = 0, /**< A load or store which is not atomic */
   LLVMAtomicOrderingUnordered = 1, /**< Lowest level of atomicity, guarantees
                                      somewhat sane results, lock free. */
@@ -373,9 +373,9 @@ enum LLVMAtomicOrdering {
                                                  between all 
                                                  SequentiallyConsistent 
                                                  operations. */
-};
+} LLVMAtomicOrdering;
 
-enum LLVMAtomicRMWBinOp {
+typedef enum {
     LLVMAtomicRMWBinOpXchg, /**< Set the new value and return the one old */
     LLVMAtomicRMWBinOpAdd, /**< Add a value and return the old one */
     LLVMAtomicRMWBinOpSub, /**< Subtract a value and return the old one */
@@ -395,7 +395,7 @@ enum LLVMAtomicRMWBinOp {
     LLVMAtomicRMWBinOpUMin /**< Sets the value if it's greater than the
                              original using an unsigned comparison  and return 
                              the old one */
-};
+} LLVMAtomicRMWBinOp;
 
 /**
  * @}





More information about the llvm-commits mailing list