[compiler-rt] r293057 - [compiler-rt] Fix xray compilation errors: errno and size_t

Krzysztof Parzyszek via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 25 06:20:32 PST 2017


Author: kparzysz
Date: Wed Jan 25 08:20:30 2017
New Revision: 293057

URL: http://llvm.org/viewvc/llvm-project?rev=293057&view=rev
Log:
[compiler-rt] Fix xray compilation errors: errno and size_t

Include errno.h, and use size_t instead of std::size_t, since stddef.h
was included (and not cstddef).

Modified:
    compiler-rt/trunk/lib/xray/xray_fdr_logging.h
    compiler-rt/trunk/lib/xray/xray_utils.cc

Modified: compiler-rt/trunk/lib/xray/xray_fdr_logging.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/xray/xray_fdr_logging.h?rev=293057&r1=293056&r2=293057&view=diff
==============================================================================
--- compiler-rt/trunk/lib/xray/xray_fdr_logging.h (original)
+++ compiler-rt/trunk/lib/xray/xray_fdr_logging.h Wed Jan 25 08:20:30 2017
@@ -83,7 +83,7 @@ struct FDRLoggingOptions {
 };
 
 // Flight Data Recorder mode implementation interfaces.
-XRayLogInitStatus FDRLogging_init(std::size_t BufferSize, std::size_t BufferMax,
+XRayLogInitStatus FDRLogging_init(size_t BufferSize, size_t BufferMax,
                                   void *Options, size_t OptionsSize);
 XRayLogInitStatus FDRLogging_finalize();
 void FDRLogging_handleArg0(int32_t FuncId, XRayEntryType Entry);

Modified: compiler-rt/trunk/lib/xray/xray_utils.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/xray/xray_utils.cc?rev=293057&r1=293056&r2=293057&view=diff
==============================================================================
--- compiler-rt/trunk/lib/xray/xray_utils.cc (original)
+++ compiler-rt/trunk/lib/xray/xray_utils.cc Wed Jan 25 08:20:30 2017
@@ -16,6 +16,7 @@
 #include "xray_defs.h"
 #include "xray_flags.h"
 #include <cstdio>
+#include <errno.h>
 #include <fcntl.h>
 #include <iterator>
 #include <sys/types.h>




More information about the llvm-commits mailing list