2017-02-08 23:23:19 +01:00
|
|
|
//===- lib/MC/MCLabel.cpp - MCLabel implementation ------------------------===//
|
2010-05-18 01:08:19 +02:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#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
|