LLVM  10.0.0svn
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
This class represents lattice values for constants.
Definition: AllocatorList.h:23
#define FORMAT_CASE(Value, Name)
Definition: Formatters.h:19
This class implements an extremely fast bulk output stream that can only output to a stream...
Definition: raw_ostream.h:45
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:48
static void format(const pdb::PdbRaw_ImplVer &V, llvm::raw_ostream &Stream, StringRef Style)
Definition: Formatters.h:26