[XRay] [compiler-rt] Simplify FDR logging handler. [NFC]
authorMartin Pelikan <martin.pelikan@gmail.com>
Wed, 12 Apr 2017 01:31:17 +0000 (01:31 +0000)
committerMartin Pelikan <martin.pelikan@gmail.com>
Wed, 12 Apr 2017 01:31:17 +0000 (01:31 +0000)
commitbb1147317aef6b9a3b4bc7f4d93b654c990b2601
tree9cad3f8faad987a6d0b3f6faa7e03ce71a7af29c
parentbcfc9d9b382d4c80f084fbc2f43cfeb9b0555284
[XRay] [compiler-rt] Simplify FDR logging handler. [NFC]

Summary:
Not repeating screamy failure paths makes the 300+ line function a bit shorter.
There's no need to overload the variable name "Buffer" if it only works on the
thread local buffer.  Fix some comments while there.

I plan to move the rewinding logic into a separate function too, but in this
diff it would be too much of a mess to comprehend.  This is trivially NFC.

Reviewers: kpw, dberris

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D31930

llvm-svn: 300018
compiler-rt/lib/xray/xray_fdr_logging_impl.h