From d86871dd71788491c2f6fbe4f517e7f668d499ba Mon Sep 17 00:00:00 2001 From: Carlo Kok Date: Tue, 23 Apr 2013 13:45:37 +0000 Subject: [PATCH] c vs c++ mistake in header file typedef for AtomicRMW fix in rev 180100. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180104 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm-c/Core.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/llvm-c/Core.h b/include/llvm-c/Core.h index 91d91c3517e..63e816effc6 100644 --- a/include/llvm-c/Core.h +++ b/include/llvm-c/Core.h @@ -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; /** * @} -- 2.34.1