LLVM  8.0.1
MCLabel.cpp
Go to the documentation of this file.
1 //===- lib/MC/MCLabel.cpp - MCLabel implementation ------------------------===//
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 #include "llvm/MC/MCLabel.h"
11 #include "llvm/Config/llvm-config.h"
12 #include "llvm/Support/Compiler.h"
13 #include "llvm/Support/Debug.h"
15 
16 using namespace llvm;
17 
18 void MCLabel::print(raw_ostream &OS) const {
19  OS << '"' << getInstance() << '"';
20 }
21 
22 #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
24  print(dbgs());
25 }
26 #endif
This class represents lattice values for constants.
Definition: AllocatorList.h:24
#define LLVM_DUMP_METHOD
Definition: Compiler.h:74
raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
Definition: Debug.cpp:133
void dump() const
Print the value to stderr.
Definition: MCLabel.cpp:23
unsigned getInstance() const
Get the current instance of this Directional Local Label.
Definition: MCLabel.h:38
void print(raw_ostream &OS) const
Print the value to the stream OS.
Definition: MCLabel.cpp:18
This class implements an extremely fast bulk output stream that can only output to a stream...
Definition: raw_ostream.h:46