1 //===- llvm/Support/DiagnosticInfo.cpp - Diagnostic Definitions -*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file defines the a diagnostic printer relying on raw_ostream.
12 //===----------------------------------------------------------------------===//
14 #include "llvm/ADT/Twine.h"
15 #include "llvm/IR/DiagnosticPrinter.h"
16 #include "llvm/IR/Value.h"
17 #include "llvm/Support/raw_ostream.h"
21 DiagnosticPrinter &DiagnosticPrinterRawOStream::operator<<(char C) {
26 DiagnosticPrinter &DiagnosticPrinterRawOStream::operator<<(unsigned char C) {
31 DiagnosticPrinter &DiagnosticPrinterRawOStream::operator<<(signed char C) {
36 DiagnosticPrinter &DiagnosticPrinterRawOStream::operator<<(StringRef Str) {
41 DiagnosticPrinter &DiagnosticPrinterRawOStream::operator<<(const char *Str) {
46 DiagnosticPrinter &DiagnosticPrinterRawOStream::operator<<(
47 const std::string &Str) {
52 DiagnosticPrinter &DiagnosticPrinterRawOStream::operator<<(unsigned long N) {
56 DiagnosticPrinter &DiagnosticPrinterRawOStream::operator<<(long N) {
61 DiagnosticPrinter &DiagnosticPrinterRawOStream::operator<<(
62 unsigned long long N) {
67 DiagnosticPrinter &DiagnosticPrinterRawOStream::operator<<(long long N) {
72 DiagnosticPrinter &DiagnosticPrinterRawOStream::operator<<(const void *P) {
77 DiagnosticPrinter &DiagnosticPrinterRawOStream::operator<<(unsigned int N) {
82 DiagnosticPrinter &DiagnosticPrinterRawOStream::operator<<(int N) {
87 DiagnosticPrinter &DiagnosticPrinterRawOStream::operator<<(double N) {
92 DiagnosticPrinter &DiagnosticPrinterRawOStream::operator<<(const Twine &Str) {
93 Stream << Str.getSingleStringRef();
98 DiagnosticPrinter &DiagnosticPrinterRawOStream::operator<<(const Value &V) {
99 Stream << V.getName();