forked from OSchip/llvm-project
[Flang] flang-omp-report replace std::vector's with llvm::SmallVector
This patch replaces all uses of std::vector with llvm::SmallVector in the flang-omp-report plugin. This is a one of several patches focusing on switching containers from STL to LLVM's ADT library. Reviewed By: Leporacanthicus Differential Revision: https://reviews.llvm.org/D111709
This commit is contained in:
parent
eaa52750ce
commit
0b48b015b5
|
@ -13,10 +13,11 @@
|
|||
#include "flang/Parser/parse-tree.h"
|
||||
#include "flang/Parser/parsing.h"
|
||||
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
|
||||
#include <deque>
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace Fortran {
|
||||
namespace parser {
|
||||
|
@ -37,7 +38,7 @@ struct LogRecord {
|
|||
std::string file;
|
||||
int line;
|
||||
std::string construct;
|
||||
std::vector<ClauseInfo> clauses;
|
||||
llvm::SmallVector<ClauseInfo> clauses;
|
||||
};
|
||||
bool operator==(const LogRecord &a, const LogRecord &b);
|
||||
bool operator!=(const LogRecord &a, const LogRecord &b);
|
||||
|
@ -95,9 +96,9 @@ struct OpenMPCounterVisitor {
|
|||
std::deque<LogRecord> constructClauses;
|
||||
|
||||
LogRecord *curLoopLogRecord{nullptr};
|
||||
std::vector<LogRecord *> loopLogRecordStack;
|
||||
std::vector<OmpWrapperType *> ompWrapperStack;
|
||||
std::map<OmpWrapperType *, std::vector<ClauseInfo>> clauseStrings;
|
||||
llvm::SmallVector<LogRecord *> loopLogRecordStack;
|
||||
llvm::SmallVector<OmpWrapperType *> ompWrapperStack;
|
||||
std::map<OmpWrapperType *, llvm::SmallVector<ClauseInfo>> clauseStrings;
|
||||
Parsing *parsing{nullptr};
|
||||
};
|
||||
} // namespace parser
|
||||
|
|
Loading…
Reference in New Issue