Eugene Zelenko | 498b48e | 2017-02-08 22:23:19 +0000 | [diff] [blame] | 1 | //===- lib/MC/MCLabel.cpp - MCLabel implementation ------------------------===// |
Kevin Enderby | ebe7fcd | 2010-05-17 23:08:19 +0000 | [diff] [blame] | 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | #include "llvm/MC/MCLabel.h" |
Nico Weber | 0f38c60 | 2018-04-30 14:59:11 +0000 | [diff] [blame] | 11 | #include "llvm/Config/llvm-config.h" |
Eugene Zelenko | 498b48e | 2017-02-08 22:23:19 +0000 | [diff] [blame] | 12 | #include "llvm/Support/Compiler.h" |
Kevin Enderby | ebe7fcd | 2010-05-17 23:08:19 +0000 | [diff] [blame] | 13 | #include "llvm/Support/Debug.h" |
| 14 | #include "llvm/Support/raw_ostream.h" |
Eugene Zelenko | 498b48e | 2017-02-08 22:23:19 +0000 | [diff] [blame] | 15 | |
Kevin Enderby | ebe7fcd | 2010-05-17 23:08:19 +0000 | [diff] [blame] | 16 | using namespace llvm; |
| 17 | |
| 18 | void MCLabel::print(raw_ostream &OS) const { |
| 19 | OS << '"' << getInstance() << '"'; |
| 20 | } |
| 21 | |
Aaron Ballman | 1d03d38 | 2017-10-15 14:32:27 +0000 | [diff] [blame] | 22 | #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) |
Yaron Keren | 5530798 | 2016-01-29 20:50:44 +0000 | [diff] [blame] | 23 | LLVM_DUMP_METHOD void MCLabel::dump() const { |
Kevin Enderby | ebe7fcd | 2010-05-17 23:08:19 +0000 | [diff] [blame] | 24 | print(dbgs()); |
| 25 | } |
Matthias Braun | 88d2075 | 2017-01-28 02:02:38 +0000 | [diff] [blame] | 26 | #endif |