mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-26 07:24:25 +00:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user