summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/PDB/Native
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-04-25 20:22:02 +0000
committerZachary Turner <zturner@google.com>2017-04-25 20:22:02 +0000
commitee3b9c2558802ae865acea5cd4a3c28913ea9847 (patch)
treee308cd5075e7b4db1a122fcbd687e16fadf027b0 /llvm/lib/DebugInfo/PDB/Native
parente46b4498b8f11925986704196094eb6a89f6e3dc (diff)
downloadbcm5719-llvm-ee3b9c2558802ae865acea5cd4a3c28913ea9847.tar.gz
bcm5719-llvm-ee3b9c2558802ae865acea5cd4a3c28913ea9847.zip
[llvm-pdbdump] Dump File / Line Info to YAML.
We were already parsing and dumping this to the human readable format, but not to the YAML format. This does so, in preparation for reading it in and reconstructing the line information from YAML. llvm-svn: 301357
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Native')
-rw-r--r--llvm/lib/DebugInfo/PDB/Native/ModStream.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Native/ModStream.cpp b/llvm/lib/DebugInfo/PDB/Native/ModStream.cpp
index 08798cf0ed2..e87e2c40759 100644
--- a/llvm/lib/DebugInfo/PDB/Native/ModStream.cpp
+++ b/llvm/lib/DebugInfo/PDB/Native/ModStream.cpp
@@ -82,4 +82,8 @@ ModStream::lines(bool *HadError) const {
return make_range(LineInfo.begin(HadError), LineInfo.end());
}
+bool ModStream::hasLineInfo() const {
+ return C13LinesSubstream.getLength() > 0 || LinesSubstream.getLength() > 0;
+}
+
Error ModStream::commit() { return Error::success(); }
OpenPOWER on IntegriCloud