xref: /minix3/external/bsd/llvm/dist/llvm/lib/MC/MCLabel.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc //===- lib/MC/MCLabel.cpp - MCLabel implementation ----------------------===//
2*f4a2713aSLionel Sambuc //
3*f4a2713aSLionel Sambuc //                     The LLVM Compiler Infrastructure
4*f4a2713aSLionel Sambuc //
5*f4a2713aSLionel Sambuc // This file is distributed under the University of Illinois Open Source
6*f4a2713aSLionel Sambuc // License. See LICENSE.TXT for details.
7*f4a2713aSLionel Sambuc //
8*f4a2713aSLionel Sambuc //===----------------------------------------------------------------------===//
9*f4a2713aSLionel Sambuc 
10*f4a2713aSLionel Sambuc #include "llvm/MC/MCLabel.h"
11*f4a2713aSLionel Sambuc #include "llvm/Support/Debug.h"
12*f4a2713aSLionel Sambuc #include "llvm/Support/raw_ostream.h"
13*f4a2713aSLionel Sambuc using namespace llvm;
14*f4a2713aSLionel Sambuc 
print(raw_ostream & OS) const15*f4a2713aSLionel Sambuc void MCLabel::print(raw_ostream &OS) const {
16*f4a2713aSLionel Sambuc   OS << '"' << getInstance() << '"';
17*f4a2713aSLionel Sambuc }
18*f4a2713aSLionel Sambuc 
19*f4a2713aSLionel Sambuc #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
dump() const20*f4a2713aSLionel Sambuc void MCLabel::dump() const {
21*f4a2713aSLionel Sambuc   print(dbgs());
22*f4a2713aSLionel Sambuc }
23*f4a2713aSLionel Sambuc #endif
24