2017-02-08 23:23:19 +01:00
|
|
|
//===- lib/MC/MCLabel.cpp - MCLabel implementation ------------------------===//
|
2010-05-18 01:08:19 +02:00
|
|
|
//
|
2019-01-19 09:50:56 +01:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2010-05-18 01:08:19 +02:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "llvm/MC/MCLabel.h"
|
2018-04-30 16:59:11 +02:00
|
|
|
#include "llvm/Config/llvm-config.h"
|
2017-02-08 23:23:19 +01:00
|
|
|
#include "llvm/Support/Compiler.h"
|
2010-05-18 01:08:19 +02:00
|
|
|
#include "llvm/Support/Debug.h"
|
|
|
|
#include "llvm/Support/raw_ostream.h"
|
2017-02-08 23:23:19 +01:00
|
|
|
|
2010-05-18 01:08:19 +02:00
|
|
|
using namespace llvm;
|
|
|
|
|
|
|
|
void MCLabel::print(raw_ostream &OS) const {
|
|
|
|
OS << '"' << getInstance() << '"';
|
|
|
|
}
|
|
|
|
|
2017-10-15 16:32:27 +02:00
|
|
|
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
|
2016-01-29 21:50:44 +01:00
|
|
|
LLVM_DUMP_METHOD void MCLabel::dump() const {
|
2010-05-18 01:08:19 +02:00
|
|
|
print(dbgs());
|
|
|
|
}
|
2017-01-28 03:02:38 +01:00
|
|
|
#endif
|