aboutsummaryrefslogtreecommitdiffstats
path: root/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
commitd86871dd71788491c2f6fbe4f517e7f668d499ba (patch)
tree3b7757c7127190359c9869ce80dd54463d307a25 /include/llvm-c
parenta1aabcd98714737f1b1c30c889f5943f1770752b (diff)
downloadexternal_llvm-d86871dd71788491c2f6fbe4f517e7f668d499ba.zip
external_llvm-d86871dd71788491c2f6fbe4f517e7f668d499ba.tar.gz
external_llvm-d86871dd71788491c2f6fbe4f517e7f668d499ba.tar.bz2
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
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;
/**
* @}