[XRay] Write the TSC along with CPUID

Fixes builds in non-little-endian systems.

This is a follow-up to D51911.

llvm-svn: 341909
This commit is contained in:
Dean Michael Berris 2018-09-11 07:27:59 +00:00
parent 85210311ba
commit ec605d3846
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ Error FDRTraceWriter::visit(WallclockRecord &R) {
}
Error FDRTraceWriter::visit(NewCPUIDRecord &R) {
return writeMetadata<2u>(OS, R.cpuid());
return writeMetadata<2u>(OS, R.cpuid(), R.tsc());
}
Error FDRTraceWriter::visit(TSCWrapRecord &R) {