LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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/Support/Debug.h"
13 using namespace llvm;
14 
15 void MCLabel::print(raw_ostream &OS) const {
16  OS << '"' << getInstance() << '"';
17 }
18 
19 #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
20 void MCLabel::dump() const {
21  print(dbgs());
22 }
23 #endif
unsigned getInstance() const
getInstance - Get the current instance of this Directional Local Label.
Definition: MCLabel.h:39
void print(raw_ostream &OS) const
print - Print the value to the stream OS.
Definition: MCLabel.cpp:15
void dump() const
dump - Print the value to stderr.
Definition: MCLabel.cpp:20
raw_ostream & dbgs()
dbgs - Return a circular-buffered debug stream.
Definition: Debug.cpp:101