c vs c++ mistake in header file typedef for AtomicRMW fix in rev 180100.
authorCarlo Kok <ck@remobjects.com>
Tue, 23 Apr 2013 13:45:37 +0000 (13:45 +0000)
committerCarlo Kok <ck@remobjects.com>
Tue, 23 Apr 2013 13:45:37 +0000 (13:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180104 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm-c/Core.h

index 91d91c3517e8927c9d912d3cbb39fb1247e35c9f..63e816effc649eddc4266c63f98cb07f603a27a3 100644 (file)
@@ -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;
 
 /**
  * @}