ELFSectionNoBits.hxx revision 58611fc8193e7386698178f167a2e0cbdd6a4f6f
1#ifndef ELF_SECTION_NOBITS_HXX 2#define ELF_SECTION_NOBITS_HXX 3 4#include "ELFTypes.h" 5 6#include "utils/raw_ostream.h" 7 8#include <llvm/Support/Format.h> 9#include <llvm/Support/raw_ostream.h> 10 11template <unsigned Bitwidth> 12inline void ELFSectionNoBits<Bitwidth>::print() const { 13 using namespace llvm; 14 15 out() << '\n' << fillformat('=', 79) << '\n'; 16 out().changeColor(raw_ostream::WHITE, true); 17 out() << "ELF NOBITS: " << this->section_header->getName() << '\n'; 18 out().resetColor(); 19 out() << fillformat('-', 79) << '\n'; 20 21 out() << " Size : " << this->size() << '\n'; 22 out() << " Start Address: " 23 << static_cast<addr_t>((size_t)this->buf) << '\n'; 24 out() << fillformat('-', 79) << '\n'; 25 26 dump_hex(this->buf, this->buf_size, 0, 16); 27 28 out() << fillformat('=', 79) << '\n'; 29} 30 31#endif // ELF_SECTION_NOBITS_HXX 32