diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-02-28 21:13:05 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-02-28 21:13:05 +0000 |
commit | 489d67927172941bf59b9f4829ab8910814fea24 (patch) | |
tree | a36101a0f30fac4ccf07c8fd29794a78adad47c3 /include/llvm/MC | |
parent | 3c2e5f2140ade86ff353b27b37137d493f487558 (diff) | |
download | external_llvm-489d67927172941bf59b9f4829ab8910814fea24.zip external_llvm-489d67927172941bf59b9f4829ab8910814fea24.tar.gz external_llvm-489d67927172941bf59b9f4829ab8910814fea24.tar.bz2 |
On ELF, create relocations to the abbreviation and line sections when producing
debug info for assembly files. We were already doing the right thing when
producing debug info for C/C++.
ELF linkers don't know dwarf, so they depend on these relocations to produce
valid dwarf output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151655 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC')
-rw-r--r-- | include/llvm/MC/MCDwarf.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/MC/MCDwarf.h b/include/llvm/MC/MCDwarf.h index 1a56a90..a0fc9e5 100644 --- a/include/llvm/MC/MCDwarf.h +++ b/include/llvm/MC/MCDwarf.h @@ -212,7 +212,7 @@ namespace llvm { // // This emits the Dwarf file and the line tables. // - static void Emit(MCStreamer *MCOS); + static const MCSymbol *Emit(MCStreamer *MCOS); }; class MCDwarfLineAddr { @@ -235,7 +235,7 @@ namespace llvm { // When generating dwarf for assembly source files this emits the Dwarf // sections. // - static void Emit(MCStreamer *MCOS); + static void Emit(MCStreamer *MCOS, const MCSymbol *LineSectionSymbol); }; // When generating dwarf for assembly source files this is the info that is |