[cfe-commits] r164665 - in /cfe/trunk: lib/Headers/unwind.h test/Headers/unwind.c
Logan Chien
tzuhsiang.chien at gmail.com
Tue Sep 25 23:35:18 PDT 2012
Author: logan
Date: Wed Sep 26 01:35:17 2012
New Revision: 164665
URL: http://llvm.org/viewvc/llvm-project?rev=164665&view=rev
Log:
Add struct keyword before _Unwind_Context.
In the C programming language, we have to add the
"struct" keyword. Otherwise, the compiler will
emit error message.
Added:
cfe/trunk/test/Headers/unwind.c
Modified:
cfe/trunk/lib/Headers/unwind.h
Modified: cfe/trunk/lib/Headers/unwind.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/unwind.h?rev=164665&r1=164664&r2=164665&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/unwind.h (original)
+++ cfe/trunk/lib/Headers/unwind.h Wed Sep 26 01:35:17 2012
@@ -100,7 +100,7 @@
_UVRSR_FAILED = 2
} _Unwind_VRS_Result;
-_Unwind_VRS_Result _Unwind_VRS_Get(_Unwind_Context *context,
+_Unwind_VRS_Result _Unwind_VRS_Get(struct _Unwind_Context *context,
_Unwind_VRS_RegClass regclass,
uint32_t regno,
_Unwind_VRS_DataRepresentation representation,
Added: cfe/trunk/test/Headers/unwind.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Headers/unwind.c?rev=164665&view=auto
==============================================================================
--- cfe/trunk/test/Headers/unwind.c (added)
+++ cfe/trunk/test/Headers/unwind.c Wed Sep 26 01:35:17 2012
@@ -0,0 +1,6 @@
+// RUN: %clang -target arm-unknown-linux-gnueabi %s -fsyntax-only -o -
+// RUN: %clang -target i686-unknown-linux %s -fsyntax-only -o -
+
+#include "unwind.h"
+// CHECK-NOT: error
+// CHECK-NOT: warning
More information about the cfe-commits
mailing list