LLVM  14.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 
24 namespace llvm {
25 template <> 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
RawConstants.h
llvm
This file implements support for optimizing divisions by a constant.
Definition: AllocatorList.h:23
FORMAT_CASE
#define FORMAT_CASE(Value, Name)
Definition: Formatters.h:19
FormatProviders.h
llvm::format_provider
Definition: FormatVariadicDetails.h:18
RawTypes.h
StringRef.h
llvm::pdb::PdbImplVC4
@ PdbImplVC4
Definition: RawConstants.h:23
llvm::pdb::PdbImplVC70Dep
@ PdbImplVC70Dep
Definition: RawConstants.h:27
Formatters.h
llvm::pdb::PdbImplVC80
@ PdbImplVC80
Definition: RawConstants.h:29
llvm::raw_ostream
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition: raw_ostream.h:53
llvm::pdb::PdbImplVC41
@ PdbImplVC41
Definition: RawConstants.h:24
llvm::pdb::PdbImplVC2
@ PdbImplVC2
Definition: RawConstants.h:22
llvm::pdb::PdbImplVC50
@ PdbImplVC50
Definition: RawConstants.h:25
ArrayRef.h
llvm::HexStyle::Style
Style
Definition: MCInstPrinter.h:32
llvm::format_provider< pdb::PdbRaw_ImplVer >::format
static void format(const pdb::PdbRaw_ImplVer &V, llvm::raw_ostream &Stream, StringRef Style)
Definition: Formatters.h:26
llvm::pdb::PdbImplVC98
@ PdbImplVC98
Definition: RawConstants.h:26
llvm::StringRef
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:58
llvm::pdb::PdbRaw_ImplVer
PdbRaw_ImplVer
Definition: RawConstants.h:21
llvm::pdb::PdbImplVC140
@ PdbImplVC140
Definition: RawConstants.h:31
llvm::pdb::PdbImplVC110
@ PdbImplVC110
Definition: RawConstants.h:30
llvm::pdb::PdbImplVC70
@ PdbImplVC70
Definition: RawConstants.h:28