Line data Source code
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"
14 : #include "llvm/Support/raw_ostream.h"
15 :
16 : using namespace llvm;
17 :
18 0 : void MCLabel::print(raw_ostream &OS) const {
19 0 : OS << '"' << getInstance() << '"';
20 0 : }
21 :
22 : #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
23 : LLVM_DUMP_METHOD void MCLabel::dump() const {
24 : print(dbgs());
25 : }
26 : #endif
|