[llvm] r342596 - Revert "[XRay][compiler-rt] FDRLogWriter Abstraction" and 1 more.
Evgeniy Stepanov via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 19 15:29:56 PDT 2018
Author: eugenis
Date: Wed Sep 19 15:29:56 2018
New Revision: 342596
URL: http://llvm.org/viewvc/llvm-project?rev=342596&view=rev
Log:
Revert "[XRay][compiler-rt] FDRLogWriter Abstraction" and 1 more.
Revert the following 2 commits to fix standalone compiler-rt build:
* r342523 [XRay] Detect terminfo library
* r342518 [XRay][compiler-rt] FDRLogWriter Abstraction
Modified:
llvm/trunk/include/llvm/XRay/Trace.h
Modified: llvm/trunk/include/llvm/XRay/Trace.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/XRay/Trace.h?rev=342596&r1=342595&r2=342596&view=diff
==============================================================================
--- llvm/trunk/include/llvm/XRay/Trace.h (original)
+++ llvm/trunk/include/llvm/XRay/Trace.h Wed Sep 19 15:29:56 2018
@@ -46,25 +46,20 @@ namespace xray {
///
class Trace {
XRayFileHeader FileHeader;
- using RecordVector = std::vector<XRayRecord>;
- RecordVector Records;
+ std::vector<XRayRecord> Records;
typedef std::vector<XRayRecord>::const_iterator citerator;
friend Expected<Trace> loadTrace(const DataExtractor &, bool);
public:
- using size_type = RecordVector::size_type;
- using value_type = RecordVector::value_type;
- using const_iterator = RecordVector::const_iterator;
-
/// Provides access to the loaded XRay trace file header.
const XRayFileHeader &getFileHeader() const { return FileHeader; }
- const_iterator begin() const { return Records.begin(); }
- const_iterator end() const { return Records.end(); }
+ citerator begin() const { return Records.begin(); }
+ citerator end() const { return Records.end(); }
bool empty() const { return Records.empty(); }
- size_type size() const { return Records.size(); }
+ size_t size() const { return Records.size(); }
};
/// This function will attempt to load XRay trace records from the provided
More information about the llvm-commits
mailing list