blob: c376c83274efe423b8b76a24733cdd99cc6c826e [file] [log] [blame]
Eugene Zelenko498b48e2017-02-08 22:23:19 +00001//===- lib/MC/MCLabel.cpp - MCLabel implementation ------------------------===//
Kevin Enderbyebe7fcd2010-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"
Nico Weber0f38c602018-04-30 14:59:11 +000011#include "llvm/Config/llvm-config.h"
Eugene Zelenko498b48e2017-02-08 22:23:19 +000012#include "llvm/Support/Compiler.h"
Kevin Enderbyebe7fcd2010-05-17 23:08:19 +000013#include "llvm/Support/Debug.h"
14#include "llvm/Support/raw_ostream.h"
Eugene Zelenko498b48e2017-02-08 22:23:19 +000015
Kevin Enderbyebe7fcd2010-05-17 23:08:19 +000016using namespace llvm;
17
18void MCLabel::print(raw_ostream &OS) const {
19 OS << '"' << getInstance() << '"';
20}
21
Aaron Ballman1d03d382017-10-15 14:32:27 +000022#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
Yaron Keren55307982016-01-29 20:50:44 +000023LLVM_DUMP_METHOD void MCLabel::dump() const {
Kevin Enderbyebe7fcd2010-05-17 23:08:19 +000024 print(dbgs());
25}
Matthias Braun88d20752017-01-28 02:02:38 +000026#endif