1*06f32e7eSjoerg //===- lib/MC/MCLabel.cpp - MCLabel implementation ------------------------===//
2*06f32e7eSjoerg //
3*06f32e7eSjoerg // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*06f32e7eSjoerg // See https://llvm.org/LICENSE.txt for license information.
5*06f32e7eSjoerg // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*06f32e7eSjoerg //
7*06f32e7eSjoerg //===----------------------------------------------------------------------===//
8*06f32e7eSjoerg 
9*06f32e7eSjoerg #include "llvm/MC/MCLabel.h"
10*06f32e7eSjoerg #include "llvm/Config/llvm-config.h"
11*06f32e7eSjoerg #include "llvm/Support/Compiler.h"
12*06f32e7eSjoerg #include "llvm/Support/Debug.h"
13*06f32e7eSjoerg #include "llvm/Support/raw_ostream.h"
14*06f32e7eSjoerg 
15*06f32e7eSjoerg using namespace llvm;
16*06f32e7eSjoerg 
print(raw_ostream & OS) const17*06f32e7eSjoerg void MCLabel::print(raw_ostream &OS) const {
18*06f32e7eSjoerg   OS << '"' << getInstance() << '"';
19*06f32e7eSjoerg }
20*06f32e7eSjoerg 
21*06f32e7eSjoerg #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
dump() const22*06f32e7eSjoerg LLVM_DUMP_METHOD void MCLabel::dump() const {
23*06f32e7eSjoerg   print(dbgs());
24*06f32e7eSjoerg }
25*06f32e7eSjoerg #endif
26