LLVM  8.0.1
Formatters.h
Go to the documentation of this file.
1 //===- Formatters.h ---------------------------------------------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #ifndef LLVM_DEBUGINFO_PDB_NATIVE_FORMATTERS_H
11 #define LLVM_DEBUGINFO_PDB_NATIVE_FORMATTERS_H
12 
13 #include "llvm/ADT/ArrayRef.h"
14 #include "llvm/ADT/StringRef.h"
19 
20 #define FORMAT_CASE(Value, Name) \
21  case Value: \
22  Stream << Name; \
23  break;
24 
25 namespace llvm {
26 template <> struct format_provider<pdb::PdbRaw_ImplVer> {
27  static void format(const pdb::PdbRaw_ImplVer &V, llvm::raw_ostream &Stream,
28  StringRef Style) {
29  switch (V) {
40  }
41  }
42 };
43 }
44 
45 #endif
This class represents lattice values for constants.
Definition: AllocatorList.h:24
#define FORMAT_CASE(Value, Name)
Definition: Formatters.h:20
This class implements an extremely fast bulk output stream that can only output to a stream...
Definition: raw_ostream.h:46
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:49
static void format(const pdb::PdbRaw_ImplVer &V, llvm::raw_ostream &Stream, StringRef Style)
Definition: Formatters.h:27