summaryrefslogtreecommitdiff
path: root/third_party/llvm-project
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/llvm-project')
-rw-r--r--third_party/llvm-project/dwarf2yaml.cpp2
-rw-r--r--third_party/llvm-project/include/llvm/ObjectYAML/DWARFYAML.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/third_party/llvm-project/dwarf2yaml.cpp b/third_party/llvm-project/dwarf2yaml.cpp
index eed340964..6ba73d1ec 100644
--- a/third_party/llvm-project/dwarf2yaml.cpp
+++ b/third_party/llvm-project/dwarf2yaml.cpp
@@ -325,6 +325,8 @@ void dumpDebugLines(DWARFContext &DCtx, DWARFYAML::Data &Y) {
DataExtractor LineData(DCtx.getDWARFObj().getLineSection().Data,
DCtx.isLittleEndian(), CU->getAddressByteSize());
uint64_t Offset = *StmtOffset;
+ DebugLines.Position = Offset;
+
dumpInitialLength(LineData, Offset, DebugLines.Length);
uint64_t LineTableLength = DebugLines.Length.getLength();
uint64_t SizeOfPrologueLength = DebugLines.Length.isDWARF64() ? 8 : 4;
diff --git a/third_party/llvm-project/include/llvm/ObjectYAML/DWARFYAML.h b/third_party/llvm-project/include/llvm/ObjectYAML/DWARFYAML.h
index 510610123..bb66565a5 100644
--- a/third_party/llvm-project/include/llvm/ObjectYAML/DWARFYAML.h
+++ b/third_party/llvm-project/include/llvm/ObjectYAML/DWARFYAML.h
@@ -151,6 +151,7 @@ struct LineTableOpcode {
};
struct LineTable {
+ uint64_t Position; // XXX BINARYEN: the binary location in .debug_line
InitialLength Length;
uint16_t Version;
uint64_t PrologueLength;