[Flang][flang-omp-report] Switch from std::string to StringRef (where possible)
authorJosh Mottley <josh.mottley@arm.com>
Wed, 20 Oct 2021 07:42:14 +0000 (07:42 +0000)
committerAndrzej Warzynski <andrzej.warzynski@arm.com>
Wed, 20 Oct 2021 07:55:44 +0000 (07:55 +0000)
commit660c511e5b79d3724b8a139c8865c790d77b1f8f
tree327671e03bab520e6a90c1ec3ad94a83928e31e4
parentde10a02fc067339224196735aa3ecec66e2d4845
[Flang][flang-omp-report] Switch from std::string to StringRef (where possible)

This patch makes the following changes to flang-omp-report:
 - Update 'normalize_clause_name' parameter to use llvm::StringRef instead of
   std::sting.
 - Change usages of std::tolower to llvm::toLower from
   "ADT/StringExtras.h".
This is a one of several patches focusing on switching containers from STL to LLVM's ADT library.

Reviewed By: Leporacanthicus, clementval

Differential Revision: https://reviews.llvm.org/D111980
flang/examples/flang-omp-report-plugin/flang-omp-report-visitor.cpp
flang/examples/flang-omp-report-plugin/flang-omp-report-visitor.h