summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2018-12-24 07:09:50 +0000
committerDavid Blaikie <dblaikie@gmail.com>2018-12-24 07:09:50 +0000
commitd671eb7e7c7796c679f71bc117b0561b57d246cd (patch)
treec22859ca2726b4c3ebd5da38e29f7e67fb5294ef /llvm/lib/CodeGen
parentb917c3a41a8dc3648a6a9f7c24b9483ce6e3b9bf (diff)
downloadbcm5719-llvm-d671eb7e7c7796c679f71bc117b0561b57d246cd.tar.gz
bcm5719-llvm-d671eb7e7c7796c679f71bc117b0561b57d246cd.zip
DebugInfo: Add assembly comments for debug_addr contribution header fields
llvm-svn: 350047
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AddressPool.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AddressPool.cpp b/llvm/lib/CodeGen/AsmPrinter/AddressPool.cpp
index f8143b903d5..042243b7925 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AddressPool.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AddressPool.cpp
@@ -31,9 +31,13 @@ void AddressPool::emitHeader(AsmPrinter &Asm, MCSection *Section) {
+ sizeof(uint8_t) // address_size
+ sizeof(uint8_t) // segment_selector_size
+ AddrSize * Pool.size(); // entries
+ Asm.OutStreamer->AddComment("Length of contribution");
Asm.emitInt32(Length); // TODO: Support DWARF64 format.
+ Asm.OutStreamer->AddComment("DWARF version number");
Asm.emitInt16(Asm.getDwarfVersion());
+ Asm.OutStreamer->AddComment("Address size");
Asm.emitInt8(AddrSize);
+ Asm.OutStreamer->AddComment("Segment selector size");
Asm.emitInt8(0); // TODO: Support non-zero segment_selector_size.
}
OpenPOWER on IntegriCloud