summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm-c
diff options
context:
space:
mode:
authorCarlo Kok <ck@remobjects.com>2013-04-23 13:45:37 +0000
committerCarlo Kok <ck@remobjects.com>2013-04-23 13:45:37 +0000
commitda0ac7253c31cc49c7b1dba4225b08d09c0401c2 (patch)
treeb05362ce119ee1aa8f6bc7831896a3ac6d4de8e4 /llvm/include/llvm-c
parentfdcff04ad5ef4aaa4fe381b6662954803951a05d (diff)
downloadbcm5719-llvm-da0ac7253c31cc49c7b1dba4225b08d09c0401c2.tar.gz
bcm5719-llvm-da0ac7253c31cc49c7b1dba4225b08d09c0401c2.zip
c vs c++ mistake in header file typedef for AtomicRMW fix in rev 180100.
llvm-svn: 180104
Diffstat (limited to 'llvm/include/llvm-c')
-rw-r--r--llvm/include/llvm-c/Core.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/include/llvm-c/Core.h b/llvm/include/llvm-c/Core.h
index 91d91c3517e..63e816effc6 100644
--- a/llvm/include/llvm-c/Core.h
+++ b/llvm/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;
/**
* @}
OpenPOWER on IntegriCloud