[XRay] Guard local variables with `static` and struct with unnamed namespaces
authorFangrui Song <maskray@google.com>
Fri, 28 Sep 2018 02:05:52 +0000 (02:05 +0000)
committerFangrui Song <maskray@google.com>
Fri, 28 Sep 2018 02:05:52 +0000 (02:05 +0000)
commit58f209f5d772787539af158d7854c26e71cfb627
treede74684c13f1b398f949d7dd9ac935dcf1a964fa
parent4328ea3443fe79b72a5ca6ac17c2952b528a1433
[XRay] Guard local variables with `static` and struct with unnamed namespaces

Summary:
This is for coding standard conformance, and for fixing an ODR violation
issue: __xray::ThreadLocalData is defined twice and differently in
xray_fdr_logging.cc and xray_basic_logging.cc

Reviewers: dberris, mboerger, eizan

Reviewed By: dberris

Subscribers: delcypher, jfb, llvm-commits, #sanitizers

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

llvm-svn: 343289
compiler-rt/lib/xray/xray_basic_logging.cc
compiler-rt/lib/xray/xray_fdr_logging.cc