1 //===-- DWARFCompileUnit.cpp ------------------------------------*- C++ -*-===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 #include "DWARFCompileUnit.h" 10 11 #include "lldb/Utility/Stream.h" 12 13 using namespace lldb; 14 using namespace lldb_private; 15 16 void DWARFCompileUnit::Dump(Stream *s) const { 17 s->Printf("0x%8.8x: Compile Unit: length = 0x%8.8x, version = 0x%4.4x, " 18 "abbr_offset = 0x%8.8x, addr_size = 0x%2.2x (next CU at " 19 "{0x%8.8x})\n", 20 GetOffset(), GetLength(), GetVersion(), GetAbbrevOffset(), 21 GetAddressByteSize(), GetNextUnitOffset()); 22 } 23