MCLabel.cpp 652 B

1234567891011121314151617181920212223
  1. //===- lib/MC/MCLabel.cpp - MCLabel implementation ----------------------===//
  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. #include "llvm/MC/MCLabel.h"
  10. #include "llvm/Support/Debug.h"
  11. #include "llvm/Support/raw_ostream.h"
  12. using namespace llvm;
  13. void MCLabel::print(raw_ostream &OS) const {
  14. OS << '"' << getInstance() << '"';
  15. }
  16. #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
  17. void MCLabel::dump() const {
  18. print(dbgs());
  19. }
  20. #endif