Skip to content

Commit 71086a8

Browse files
committedMay 12, 2017
[XRay][compiler-rt] Remove unused variable after refactoring
Follow-up to D30630. llvm-svn: 302861
1 parent 724de21 commit 71086a8

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed
 

‎compiler-rt/lib/xray/xray_fdr_logging_impl.h

+10-10
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ inline bool loggingInitialized(
205205
} // namespace
206206

207207
inline void writeNewBufferPreamble(pid_t Tid, timespec TS,
208-
char *&MemPtr) XRAY_NEVER_INSTRUMENT {
208+
char *&MemPtr) XRAY_NEVER_INSTRUMENT {
209209
static constexpr int InitRecordsCount = 2;
210210
std::aligned_storage<sizeof(MetadataRecord)>::type Records[InitRecordsCount];
211211
{
@@ -254,7 +254,7 @@ inline void setupNewBuffer(int (*wall_clock_reader)(
254254
}
255255

256256
inline void writeNewCPUIdMetadata(uint16_t CPU, uint64_t TSC,
257-
char *&MemPtr) XRAY_NEVER_INSTRUMENT {
257+
char *&MemPtr) XRAY_NEVER_INSTRUMENT {
258258
MetadataRecord NewCPUId;
259259
NewCPUId.Type = uint8_t(RecordType::Metadata);
260260
NewCPUId.RecordKind = uint8_t(MetadataRecord::RecordKinds::NewCPUId);
@@ -272,7 +272,7 @@ inline void writeNewCPUIdMetadata(uint16_t CPU, uint64_t TSC,
272272
}
273273

274274
inline void writeNewCPUIdMetadata(uint16_t CPU,
275-
uint64_t TSC) XRAY_NEVER_INSTRUMENT {
275+
uint64_t TSC) XRAY_NEVER_INSTRUMENT {
276276
writeNewCPUIdMetadata(CPU, TSC, RecordPtr);
277277
}
278278

@@ -292,7 +292,7 @@ inline void writeEOBMetadata() XRAY_NEVER_INSTRUMENT {
292292
}
293293

294294
inline void writeTSCWrapMetadata(uint64_t TSC,
295-
char *&MemPtr) XRAY_NEVER_INSTRUMENT {
295+
char *&MemPtr) XRAY_NEVER_INSTRUMENT {
296296
MetadataRecord TSCWrap;
297297
TSCWrap.Type = uint8_t(RecordType::Metadata);
298298
TSCWrap.RecordKind = uint8_t(MetadataRecord::RecordKinds::TSCWrap);
@@ -312,8 +312,8 @@ inline void writeTSCWrapMetadata(uint64_t TSC) XRAY_NEVER_INSTRUMENT {
312312
}
313313

314314
inline void writeFunctionRecord(int FuncId, uint32_t TSCDelta,
315-
XRayEntryType EntryType,
316-
char *&MemPtr) XRAY_NEVER_INSTRUMENT {
315+
XRayEntryType EntryType,
316+
char *&MemPtr) XRAY_NEVER_INSTRUMENT {
317317
std::aligned_storage<sizeof(FunctionRecord), alignof(FunctionRecord)>::type
318318
AlignedFuncRecordBuffer;
319319
auto &FuncRecord =
@@ -462,8 +462,8 @@ inline bool releaseThreadLocalBuffer(BufferQueue *BQ) {
462462
}
463463

464464
inline bool prepareBuffer(int (*wall_clock_reader)(clockid_t,
465-
struct timespec *),
466-
size_t MaxSize) XRAY_NEVER_INSTRUMENT {
465+
struct timespec *),
466+
size_t MaxSize) XRAY_NEVER_INSTRUMENT {
467467
char *BufferStart = static_cast<char *>(Buffer.Buffer);
468468
if ((RecordPtr + MaxSize) > (BufferStart + Buffer.Size - MetadataRecSize)) {
469469
writeEOBMetadata();
@@ -612,8 +612,8 @@ inline void processFunctionHook(
612612

613613
// By this point, we are now ready to write at most 24 bytes (one metadata
614614
// record and one function record).
615-
auto BufferStart = static_cast<char *>(Buffer.Buffer);
616-
assert((RecordPtr + (MetadataRecSize + FunctionRecSize)) - BufferStart >=
615+
assert((RecordPtr + (MetadataRecSize + FunctionRecSize)) -
616+
static_cast<char *>(Buffer.Buffer) >=
617617
static_cast<ptrdiff_t>(MetadataRecSize) &&
618618
"Misconfigured BufferQueue provided; Buffer size not large enough.");
619619

0 commit comments

Comments
 (0)
Please sign in to comment.