xref: /llvm-project/llvm/lib/MC/MCLabel.cpp (revision 2946cd701067404b99c39fb29dc9c74bd7193eb3)
13d8b0ebbSEugene Zelenko //===- lib/MC/MCLabel.cpp - MCLabel implementation ------------------------===//
20510b48fSKevin Enderby //
3*2946cd70SChandler Carruth // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*2946cd70SChandler Carruth // See https://llvm.org/LICENSE.txt for license information.
5*2946cd70SChandler Carruth // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
60510b48fSKevin Enderby //
70510b48fSKevin Enderby //===----------------------------------------------------------------------===//
80510b48fSKevin Enderby 
90510b48fSKevin Enderby #include "llvm/MC/MCLabel.h"
10432a3883SNico Weber #include "llvm/Config/llvm-config.h"
113d8b0ebbSEugene Zelenko #include "llvm/Support/Compiler.h"
120510b48fSKevin Enderby #include "llvm/Support/Debug.h"
130510b48fSKevin Enderby #include "llvm/Support/raw_ostream.h"
143d8b0ebbSEugene Zelenko 
150510b48fSKevin Enderby using namespace llvm;
160510b48fSKevin Enderby 
print(raw_ostream & OS) const170510b48fSKevin Enderby void MCLabel::print(raw_ostream &OS) const {
180510b48fSKevin Enderby   OS << '"' << getInstance() << '"';
190510b48fSKevin Enderby }
200510b48fSKevin Enderby 
21615eb470SAaron Ballman #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
dump() const22eb2a2546SYaron Keren LLVM_DUMP_METHOD void MCLabel::dump() const {
230510b48fSKevin Enderby   print(dbgs());
240510b48fSKevin Enderby }
258c209aa8SMatthias Braun #endif
26