Mercurial > hg > CbC > CbC_llvm
view lib/DebugInfo/DWARF/DWARFAddressRange.cpp @ 134:3a76565eade5 LLVM5.0.1
update 5.0.1
author | mir3636 |
---|---|
date | Sat, 17 Feb 2018 09:57:20 +0900 |
parents | |
children | c2174574ed3a |
line wrap: on
line source
//===- DWARFDebugAranges.cpp ------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// #include "llvm/DebugInfo/DWARF/DWARFAddressRange.h" #include "llvm/Support/Format.h" #include "llvm/Support/raw_ostream.h" using namespace llvm; void DWARFAddressRange::dump(raw_ostream &OS, uint32_t AddressSize) const { OS << format("[0x%*.*" PRIx64 ", ", AddressSize * 2, AddressSize * 2, LowPC) << format(" 0x%*.*" PRIx64 ")", AddressSize * 2, AddressSize * 2, HighPC); } raw_ostream &llvm::operator<<(raw_ostream &OS, const DWARFAddressRange &R) { R.dump(OS, /* AddressSize */ 8); return OS; }