blob: db25a46fce186aedb0ca3158caee144b6c26eae0 [file] [log] [blame]
Eugene Zelenko3d8b0eb2017-02-08 22:23:19 +00001//===- lib/MC/MCLabel.cpp - MCLabel implementation ------------------------===//
Kevin Enderby0510b482010-05-17 23:08:19 +00002//
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"
Eugene Zelenko3d8b0eb2017-02-08 22:23:19 +000011#include "llvm/Support/Compiler.h"
Kevin Enderby0510b482010-05-17 23:08:19 +000012#include "llvm/Support/Debug.h"
13#include "llvm/Support/raw_ostream.h"
Eugene Zelenko3d8b0eb2017-02-08 22:23:19 +000014
Kevin Enderby0510b482010-05-17 23:08:19 +000015using namespace llvm;
16
17void MCLabel::print(raw_ostream &OS) const {
18 OS << '"' << getInstance() << '"';
19}
20
Matthias Braun8c209aa2017-01-28 02:02:38 +000021#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
Yaron Kereneb2a2542016-01-29 20:50:44 +000022LLVM_DUMP_METHOD void MCLabel::dump() const {
Kevin Enderby0510b482010-05-17 23:08:19 +000023 print(dbgs());
24}
Matthias Braun8c209aa2017-01-28 02:02:38 +000025#endif