Some targets does not support labels inside debug sections, but support
references in form section+offset. Patch adds initial support
for this. Also, this patch disables emission of all additional debug
sections that may have labels inside of it (like pub sections and
string tables).
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Some inline comments.
lib/CodeGen/AsmPrinter/DwarfDebug.cpp | ||
---|---|---|
320 ↗ | (On Diff #136521) | Why? |
751 ↗ | (On Diff #136521) | Can you explain why this one is necessary? |
1579–1583 ↗ | (On Diff #136521) | Let's refactor this into a "DwarfEmitOffset" function and use it in all of the places we want to emit a label plus an offset, then this becomes a two line patch. |
lib/CodeGen/AsmPrinter/DwarfDebug.cpp | ||
---|---|---|
320 ↗ | (On Diff #136521) | Removed |
751 ↗ | (On Diff #136521) | It was fixed already in another patch |
1579–1583 ↗ | (On Diff #136521) | Ok, will do |
lib/CodeGen/AsmPrinter/DwarfDebug.cpp | ||
---|---|---|
1579–1583 ↗ | (On Diff #136521) | Feels like you should be able to refactor the if conditional into the function as well and generally just use it everywhere? Also means you can probably split it into two patches:
Thoughts? |