LLVM: include/llvm/Testing/ADT/StringMap.h Source File (original) (raw)
Go to the documentation of this file.
1
2
3
4
5
6
7
8
9#ifndef LLVM_TESTING_ADT_STRINGMAP_H_
10#define LLVM_TESTING_ADT_STRINGMAP_H_
11
16#include
17#include
18
19namespace llvm {
20
21
22
23template
25 if (M.empty()) {
26 return OS << "{ }";
27 }
28
29 std::vectorstd::string Lines;
30 for (const auto &E : M) {
31 std::ostringstream SS;
32 SS << E << ",";
33 Lines.push_back(SS.str());
34 }
36 Lines.insert(Lines.begin(), "{");
37 Lines.insert(Lines.end(), "}");
38
40 make_range(Lines.begin(), Lines.end()))
41 .str();
42}
43
44}
45
46#endif
This file defines the StringMap class.
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
StringMap - This is an unconventional map that is specialized for handling keys that are "strings",...
This is an optimization pass for GlobalISel generic memory operations.
iterator_range< T > make_range(T x, T y)
Convenience function for iterating over sub-ranges.
auto formatv(bool Validate, const char *Fmt, Ts &&...Vals)
void sort(IteratorTy Start, IteratorTy End)
raw_ostream & operator<<(raw_ostream &OS, const APFixedPoint &FX)