blob: 95d7d16a19ab3d179380a8d40a1faf62364b484e [file] [log] [blame]
Kevin Enderbyebe7fcd2010-05-17 23:08:19 +00001//===- 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"
12#include "llvm/Support/raw_ostream.h"
13using namespace llvm;
14
15void MCLabel::print(raw_ostream &OS) const {
16 OS << '"' << getInstance() << '"';
17}
18
Manman Rencc77eec2012-09-06 19:55:56 +000019#ifndef NDEBUG
Kevin Enderbyebe7fcd2010-05-17 23:08:19 +000020void MCLabel::dump() const {
21 print(dbgs());
22}
Manman Rencc77eec2012-09-06 19:55:56 +000023#endif