2017-02-09 06:23:19 +08:00
|
|
|
//===- lib/MC/MCLabel.cpp - MCLabel implementation ------------------------===//
|
2010-05-18 07:08:19 +08:00
|
|
|
//
|
2019-01-19 16:50:56 +08: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 07:08:19 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "llvm/MC/MCLabel.h"
|
2018-04-30 22:59:11 +08:00
|
|
|
#include "llvm/Config/llvm-config.h"
|
2017-02-09 06:23:19 +08:00
|
|
|
#include "llvm/Support/Compiler.h"
|
2010-05-18 07:08:19 +08:00
|
|
|
#include "llvm/Support/Debug.h"
|
|
|
|
#include "llvm/Support/raw_ostream.h"
|
2017-02-09 06:23:19 +08:00
|
|
|
|
2010-05-18 07:08:19 +08:00
|
|
|
using namespace llvm;
|
|
|
|
|
|
|
|
void MCLabel::print(raw_ostream &OS) const {
|
|
|
|
OS << '"' << getInstance() << '"';
|
|
|
|
}
|
|
|
|
|
2017-10-15 22:32:27 +08:00
|
|
|
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
|
2016-01-30 04:50:44 +08:00
|
|
|
LLVM_DUMP_METHOD void MCLabel::dump() const {
|
2010-05-18 07:08:19 +08:00
|
|
|
print(dbgs());
|
|
|
|
}
|
2017-01-28 10:02:38 +08:00
|
|
|
#endif
|