You've already forked linux-packaging-mono
acceptance-tests
data
debian
docs
external
Newtonsoft.Json
api-doc-tools
api-snapshot
aspnetwebstack
bdwgc
binary-reference-assemblies
bockbuild
boringssl
cecil
cecil-legacy
corefx
corert
helix-binaries
ikdasm
ikvm
illinker-test-assets
linker
llvm-project
clang
clang-tools-extra
compiler-rt
eng
libcxx
libcxxabi
libunwind
lld
lldb
llvm
bindings
cmake
docs
examples
include
lib
Analysis
AsmParser
BinaryFormat
Bitcode
CodeGen
DebugInfo
CodeView
DWARF
CMakeLists.txt
DWARFAbbreviationDeclaration.cpp
DWARFAcceleratorTable.cpp
DWARFCompileUnit.cpp
DWARFContext.cpp
DWARFDataExtractor.cpp
DWARFDebugAbbrev.cpp
DWARFDebugArangeSet.cpp
DWARFDebugAranges.cpp
DWARFDebugFrame.cpp
DWARFDebugInfoEntry.cpp
DWARFDebugLine.cpp
DWARFDebugLoc.cpp
DWARFDebugMacro.cpp
DWARFDebugPubTable.cpp
DWARFDebugRangeList.cpp
DWARFDie.cpp
DWARFExpression.cpp
DWARFFormValue.cpp
DWARFGdbIndex.cpp
DWARFTypeUnit.cpp
DWARFUnit.cpp
DWARFUnitIndex.cpp
DWARFVerifier.cpp
LLVMBuild.txt
SyntaxHighlighting.cpp
SyntaxHighlighting.h
MSF
PDB
Symbolize
CMakeLists.txt
LLVMBuild.txt
Demangle
ExecutionEngine
FuzzMutate
Fuzzer
IR
IRReader
LTO
LineEditor
Linker
MC
Object
ObjectYAML
Option
Passes
ProfileData
Support
TableGen
Target
Testing
ToolDrivers
Transforms
WindowsManifest
XRay
CMakeLists.txt
LLVMBuild.txt
projects
resources
runtimes
scripts
test
tools
unittests
utils
.arcconfig
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt
CODE_OWNERS.TXT
CREDITS.TXT
LICENSE.TXT
LLVMBuild.txt
README.txt
RELEASE_TESTERS.TXT
configure
llvm.spec.in
version.txt.in
nuget
openmp
polly
Directory.Build.props
Directory.Build.targets
NuGet.config
azure-pipelines.yml
build.cmd
build.sh
dir.common.props
global.json
llvm.proj
mxe-Win64.cmake.in
nuget-buildtasks
nunit-lite
roslyn-binaries
rx
xunit-binaries
how-to-bump-roslyn-binaries.md
ikvm-native
llvm
m4
man
mcs
mono
msvc
netcore
po
runtime
samples
scripts
support
tools
COPYING.LIB
LICENSE
Makefile.am
Makefile.in
NEWS
README.md
acinclude.m4
aclocal.m4
autogen.sh
code_of_conduct.md
compile
config.guess
config.h.in
config.rpath
config.sub
configure.REMOVED.git-id
configure.ac.REMOVED.git-id
depcomp
install-sh
ltmain.sh.REMOVED.git-id
missing
mkinstalldirs
mono-uninstalled.pc.in
test-driver
winconfig.h
37 lines
1.3 KiB
C++
37 lines
1.3 KiB
C++
![]() |
//===-- DWARFCompileUnit.cpp ----------------------------------------------===//
|
||
|
//
|
||
|
// 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/DWARFCompileUnit.h"
|
||
|
#include "llvm/DebugInfo/DWARF/DWARFDebugAbbrev.h"
|
||
|
#include "llvm/DebugInfo/DWARF/DWARFDie.h"
|
||
|
#include "llvm/Support/Format.h"
|
||
|
#include "llvm/Support/raw_ostream.h"
|
||
|
|
||
|
using namespace llvm;
|
||
|
|
||
|
void DWARFCompileUnit::dump(raw_ostream &OS, DIDumpOptions DumpOpts) {
|
||
|
OS << format("0x%08x", getOffset()) << ": Compile Unit:"
|
||
|
<< " length = " << format("0x%08x", getLength())
|
||
|
<< " version = " << format("0x%04x", getVersion());
|
||
|
if (getVersion() >= 5)
|
||
|
OS << " unit_type = " << dwarf::UnitTypeString(getUnitType());
|
||
|
OS << " abbr_offset = " << format("0x%04x", getAbbreviations()->getOffset())
|
||
|
<< " addr_size = " << format("0x%02x", getAddressByteSize())
|
||
|
<< " (next unit at " << format("0x%08x", getNextUnitOffset())
|
||
|
<< ")\n";
|
||
|
|
||
|
if (DWARFDie CUDie = getUnitDIE(false))
|
||
|
CUDie.dump(OS, 0, DumpOpts);
|
||
|
else
|
||
|
OS << "<compile unit can't be parsed!>\n\n";
|
||
|
}
|
||
|
|
||
|
// VTable anchor.
|
||
|
DWARFCompileUnit::~DWARFCompileUnit() = default;
|