summaryrefslogtreecommitdiff
path: root/third_party/llvm-project/include/llvm/ObjectYAML/DWARFEmitter.h
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/llvm-project/include/llvm/ObjectYAML/DWARFEmitter.h')
-rw-r--r--third_party/llvm-project/include/llvm/ObjectYAML/DWARFEmitter.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/third_party/llvm-project/include/llvm/ObjectYAML/DWARFEmitter.h b/third_party/llvm-project/include/llvm/ObjectYAML/DWARFEmitter.h
index b4d62f44d..2be618677 100644
--- a/third_party/llvm-project/include/llvm/ObjectYAML/DWARFEmitter.h
+++ b/third_party/llvm-project/include/llvm/ObjectYAML/DWARFEmitter.h
@@ -38,6 +38,10 @@ void EmitPubSection(raw_ostream &OS, const PubSection &Sect,
bool IsLittleEndian);
void EmitDebugInfo(raw_ostream &OS, const Data &DI);
void EmitDebugLine(raw_ostream &OS, const Data &DI);
+// XXX BINARYEN: Same as EmitDebugLine but also update the Length field in
+// the YAML as we write. We use that information to update
+// offsets into the debug line section.
+void ComputeDebugLine(Data &DI, std::vector<size_t>& computedLengths);
Expected<StringMap<std::unique_ptr<MemoryBuffer>>>
EmitDebugSections(StringRef YAMLString, bool ApplyFixups = false,