[PATCH] XCore target: add support to build SingleSource/Benchmarks/Misc-C++-EH/spirit.cpp

robert lytton robert at xmos.com
Thu Feb 13 11:38:56 PST 2014


pthreads is not part of the xcore distribution.
Does removing the underlying pthread_mutex make the test meaningless?



http://llvm-reviews.chandlerc.com/D2780

Files:
  SingleSource/Benchmarks/Misc-C++-EH/spirit.cpp

Index: SingleSource/Benchmarks/Misc-C++-EH/spirit.cpp
===================================================================
--- SingleSource/Benchmarks/Misc-C++-EH/spirit.cpp
+++ SingleSource/Benchmarks/Misc-C++-EH/spirit.cpp
@@ -5246,6 +5246,16 @@
 {
 namespace detail
 {
+#ifdef __XS1B__
+class lightweight_mutex {
+public:
+    class scoped_lock {
+    public:
+        scoped_lock(lightweight_mutex & m){}
+    };
+    friend class scoped_lock;
+};
+#else
 class lightweight_mutex
 {
 private:
@@ -5280,6 +5290,7 @@
         }
     };
 };
+#endif
 }
 }
 namespace boost
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2780.1.patch
Type: text/x-patch
Size: 572 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140213/a4aba713/attachment.bin>


More information about the llvm-commits mailing list