From f0ef378b41825b9cf37d23ea58c75d647e9f5bdc Mon Sep 17 00:00:00 2001 From: Dean Michael Berris Date: Thu, 6 Oct 2016 07:09:40 +0000 Subject: [compiler-rt][XRay][NFC] clang-format XRay sources git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@283421 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/xray/xray_inmemory_log.cc | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'lib/xray/xray_inmemory_log.cc') diff --git a/lib/xray/xray_inmemory_log.cc b/lib/xray/xray_inmemory_log.cc index 286ba7122..84958928e 100644 --- a/lib/xray/xray_inmemory_log.cc +++ b/lib/xray/xray_inmemory_log.cc @@ -26,11 +26,11 @@ #include #if defined(__x86_64__) - #include +#include #elif defined(__arm__) - static const int64_t NanosecondsPerSecond = 1000LL*1000*1000; +static const int64_t NanosecondsPerSecond = 1000LL * 1000 * 1000; #else - #error "Unsupported CPU Architecture" +#error "Unsupported CPU Architecture" #endif /* CPU architecture */ #include "sanitizer_common/sanitizer_libc.h" @@ -197,7 +197,7 @@ void __xray_InMemoryRawLog(int32_t FuncId, XRayEntryType Type) { // one TSC tick is 1 nanosecond. CPUFrequency = NanosecondsPerSecond; #else - #error "Unsupported CPU Architecture" +#error "Unsupported CPU Architecture" #endif /* CPU architecture */ // Since we're here, we get to write the header. We set it up so that the @@ -237,8 +237,7 @@ void __xray_InMemoryRawLog(int32_t FuncId, XRayEntryType Type) { { timespec TS; int result = clock_gettime(CLOCK_REALTIME, &TS); - if(result != 0) - { + if (result != 0) { Report("clock_gettime() returned %d, errno=%d.", result, int(errno)); TS.tv_sec = 0; TS.tv_nsec = 0; @@ -247,7 +246,7 @@ void __xray_InMemoryRawLog(int32_t FuncId, XRayEntryType Type) { R.CPU = 0; } #else - #error "Unsupported CPU Architecture" +#error "Unsupported CPU Architecture" #endif /* CPU architecture */ R.TId = TId; R.Type = Type; -- cgit v1.2.3