diff options
author | Dean Michael Berris <dberris@google.com> | 2017-05-12 01:43:20 +0000 |
---|---|---|
committer | Dean Michael Berris <dberris@google.com> | 2017-05-12 01:43:20 +0000 |
commit | 5f20748c2f1bbf6801523c8d562f36f75793fcb3 (patch) | |
tree | 04bd72f04d9331af6c535add0bca37086d0db8cb /lib/xray | |
parent | 017000bfead7338536d35c99d5e5b98348bf9fa3 (diff) |
[XRay][compiler-rt] Remove unused variable after refactoring
Follow-up to D30630.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@302861 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/xray')
-rw-r--r-- | lib/xray/xray_fdr_logging_impl.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/xray/xray_fdr_logging_impl.h b/lib/xray/xray_fdr_logging_impl.h index c801babc3..4a1d80fd0 100644 --- a/lib/xray/xray_fdr_logging_impl.h +++ b/lib/xray/xray_fdr_logging_impl.h @@ -205,7 +205,7 @@ inline bool loggingInitialized( } // namespace inline void writeNewBufferPreamble(pid_t Tid, timespec TS, - char *&MemPtr) XRAY_NEVER_INSTRUMENT { + char *&MemPtr) XRAY_NEVER_INSTRUMENT { static constexpr int InitRecordsCount = 2; std::aligned_storage<sizeof(MetadataRecord)>::type Records[InitRecordsCount]; { @@ -254,7 +254,7 @@ inline void setupNewBuffer(int (*wall_clock_reader)( } inline void writeNewCPUIdMetadata(uint16_t CPU, uint64_t TSC, - char *&MemPtr) XRAY_NEVER_INSTRUMENT { + char *&MemPtr) XRAY_NEVER_INSTRUMENT { MetadataRecord NewCPUId; NewCPUId.Type = uint8_t(RecordType::Metadata); NewCPUId.RecordKind = uint8_t(MetadataRecord::RecordKinds::NewCPUId); @@ -272,7 +272,7 @@ inline void writeNewCPUIdMetadata(uint16_t CPU, uint64_t TSC, } inline void writeNewCPUIdMetadata(uint16_t CPU, - uint64_t TSC) XRAY_NEVER_INSTRUMENT { + uint64_t TSC) XRAY_NEVER_INSTRUMENT { writeNewCPUIdMetadata(CPU, TSC, RecordPtr); } @@ -292,7 +292,7 @@ inline void writeEOBMetadata() XRAY_NEVER_INSTRUMENT { } inline void writeTSCWrapMetadata(uint64_t TSC, - char *&MemPtr) XRAY_NEVER_INSTRUMENT { + char *&MemPtr) XRAY_NEVER_INSTRUMENT { MetadataRecord TSCWrap; TSCWrap.Type = uint8_t(RecordType::Metadata); TSCWrap.RecordKind = uint8_t(MetadataRecord::RecordKinds::TSCWrap); @@ -312,8 +312,8 @@ inline void writeTSCWrapMetadata(uint64_t TSC) XRAY_NEVER_INSTRUMENT { } inline void writeFunctionRecord(int FuncId, uint32_t TSCDelta, - XRayEntryType EntryType, - char *&MemPtr) XRAY_NEVER_INSTRUMENT { + XRayEntryType EntryType, + char *&MemPtr) XRAY_NEVER_INSTRUMENT { std::aligned_storage<sizeof(FunctionRecord), alignof(FunctionRecord)>::type AlignedFuncRecordBuffer; auto &FuncRecord = @@ -462,8 +462,8 @@ inline bool releaseThreadLocalBuffer(BufferQueue *BQ) { } inline bool prepareBuffer(int (*wall_clock_reader)(clockid_t, - struct timespec *), - size_t MaxSize) XRAY_NEVER_INSTRUMENT { + struct timespec *), + size_t MaxSize) XRAY_NEVER_INSTRUMENT { char *BufferStart = static_cast<char *>(Buffer.Buffer); if ((RecordPtr + MaxSize) > (BufferStart + Buffer.Size - MetadataRecSize)) { writeEOBMetadata(); @@ -612,8 +612,8 @@ inline void processFunctionHook( // By this point, we are now ready to write at most 24 bytes (one metadata // record and one function record). - auto BufferStart = static_cast<char *>(Buffer.Buffer); - assert((RecordPtr + (MetadataRecSize + FunctionRecSize)) - BufferStart >= + assert((RecordPtr + (MetadataRecSize + FunctionRecSize)) - + static_cast<char *>(Buffer.Buffer) >= static_cast<ptrdiff_t>(MetadataRecSize) && "Misconfigured BufferQueue provided; Buffer size not large enough."); |