LLVM API Documentation
00001 //===- lib/MC/MCLabel.cpp - MCLabel implementation ----------------------===// 00002 // 00003 // The LLVM Compiler Infrastructure 00004 // 00005 // This file is distributed under the University of Illinois Open Source 00006 // License. See LICENSE.TXT for details. 00007 // 00008 //===----------------------------------------------------------------------===// 00009 00010 #include "llvm/MC/MCLabel.h" 00011 #include "llvm/Support/Debug.h" 00012 #include "llvm/Support/raw_ostream.h" 00013 using namespace llvm; 00014 00015 void MCLabel::print(raw_ostream &OS) const { 00016 OS << '"' << getInstance() << '"'; 00017 } 00018 00019 #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) 00020 void MCLabel::dump() const { 00021 print(dbgs()); 00022 } 00023 #endif