[compiler-rt] r302962 - [XRay] Fix build with libc++ (NFC).
Eugene Zelenko via llvm-commits
llvm-commits at lists.llvm.org
Fri May 12 15:26:42 PDT 2017
Author: eugenezelenko
Date: Fri May 12 17:26:42 2017
New Revision: 302962
URL: http://llvm.org/viewvc/llvm-project?rev=302962&view=rev
Log:
[XRay] Fix build with libc++ (NFC).
Modified:
compiler-rt/trunk/include/xray/xray_interface.h
Modified: compiler-rt/trunk/include/xray/xray_interface.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/include/xray/xray_interface.h?rev=302962&r1=302961&r2=302962&view=diff
==============================================================================
--- compiler-rt/trunk/include/xray/xray_interface.h (original)
+++ compiler-rt/trunk/include/xray/xray_interface.h Fri May 12 17:26:42 2017
@@ -1,4 +1,4 @@
-//===-- xray_interface.h ----------------------------------------*- C++ -*-===//
+//===- xray_interface.h -----------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
@@ -11,11 +11,12 @@
//
// APIs for controlling XRay functionality explicitly.
//===----------------------------------------------------------------------===//
+
#ifndef XRAY_XRAY_INTERFACE_H
#define XRAY_XRAY_INTERFACE_H
+#include <cstddef>
#include <cstdint>
-#include <stddef.h>
extern "C" {
@@ -100,6 +101,6 @@ extern uintptr_t __xray_function_address
/// encounter errors (when there are no instrumented functions, etc.).
extern size_t __xray_max_function_id();
-}
+} // end extern "C"
-#endif
+#endif // XRAY_XRAY_INTERFACE_H
More information about the llvm-commits
mailing list