Emit DWARF info for all code section in an assembly file

Currently, when using llvm as an assembler, DWARF debug information is only
generated for the .text section. This patch modifies this so that DWARF info
is emitted for all executable sections.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211273 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Oliver Stannard
2014-06-19 15:52:37 +00:00
parent bb804ee909
commit 591f9ee076
8 changed files with 220 additions and 70 deletions

View File

@ -126,6 +126,10 @@ public:
void EmitFill(uint64_t NumBytes, uint8_t FillValue) override;
void EmitZeros(uint64_t NumBytes) override;
void FinishImpl() override;
virtual bool mayHaveInstructions() const {
return getCurrentSectionData()->hasInstructions();
}
};
} // end namespace llvm