aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm-c
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm-c')
-rw-r--r--include/llvm-c/Core.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm-c/Core.h b/include/llvm-c/Core.h
index 91d91c3..63e816e 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;
/**
* @}