1*9880d681SAndroid Build Coastguard Worker //===- lib/MC/MCLabel.cpp - MCLabel implementation ----------------------===// 2*9880d681SAndroid Build Coastguard Worker // 3*9880d681SAndroid Build Coastguard Worker // The LLVM Compiler Infrastructure 4*9880d681SAndroid Build Coastguard Worker // 5*9880d681SAndroid Build Coastguard Worker // This file is distributed under the University of Illinois Open Source 6*9880d681SAndroid Build Coastguard Worker // License. See LICENSE.TXT for details. 7*9880d681SAndroid Build Coastguard Worker // 8*9880d681SAndroid Build Coastguard Worker //===----------------------------------------------------------------------===// 9*9880d681SAndroid Build Coastguard Worker 10*9880d681SAndroid Build Coastguard Worker #include "llvm/MC/MCLabel.h" 11*9880d681SAndroid Build Coastguard Worker #include "llvm/Support/Debug.h" 12*9880d681SAndroid Build Coastguard Worker #include "llvm/Support/raw_ostream.h" 13*9880d681SAndroid Build Coastguard Worker using namespace llvm; 14*9880d681SAndroid Build Coastguard Worker print(raw_ostream & OS) const15*9880d681SAndroid Build Coastguard Workervoid MCLabel::print(raw_ostream &OS) const { 16*9880d681SAndroid Build Coastguard Worker OS << '"' << getInstance() << '"'; 17*9880d681SAndroid Build Coastguard Worker } 18*9880d681SAndroid Build Coastguard Worker 19*9880d681SAndroid Build Coastguard Worker #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) dump() const20*9880d681SAndroid Build Coastguard WorkerLLVM_DUMP_METHOD void MCLabel::dump() const { 21*9880d681SAndroid Build Coastguard Worker print(dbgs()); 22*9880d681SAndroid Build Coastguard Worker } 23*9880d681SAndroid Build Coastguard Worker #endif 24