LLVM 18.0.0git
Formatters.h
Go to the documentation of this file.
1//===- Formatters.h ---------------------------------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLVM_DEBUGINFO_PDB_NATIVE_FORMATTERS_H
10#define LLVM_DEBUGINFO_PDB_NATIVE_FORMATTERS_H
11
12#include "llvm/ADT/ArrayRef.h"
13#include "llvm/ADT/StringRef.h"
18
19#define FORMAT_CASE(Value, Name) \
20 case Value: \
21 Stream << Name; \
22 break;
23
24namespace llvm {
25template <> struct format_provider<pdb::PdbRaw_ImplVer> {
26 static void format(const pdb::PdbRaw_ImplVer &V, llvm::raw_ostream &Stream,
27 StringRef Style) {
28 switch (V) {
39 }
40 }
41};
42}
43
44#endif
#define FORMAT_CASE(Value, Name)
Definition: Formatters.h:19
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:50
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition: raw_ostream.h:52
@ PdbImplVC70Dep
Definition: RawConstants.h:27
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
static void format(const pdb::PdbRaw_ImplVer &V, llvm::raw_ostream &Stream, StringRef Style)
Definition: Formatters.h:26