forked from OSchip/llvm-project
[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:
parent
85210311ba
commit
ec605d3846
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue