Change some methods in MCDwarf.cpp to be able to handle an arbitrary
commit0116a46608976050eb3c5c720072acffa134a1bc
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 19 Nov 2010 02:26:16 +0000 (19 02:26 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 19 Nov 2010 02:26:16 +0000 (19 02:26 +0000)
tree75909dd2fcd8778aaf56da67446bf1b6f4615d9c
parent9a1c998de3ae0d6868d5f793b747f7dc99b1337a
Change some methods in MCDwarf.cpp to be able to handle an arbitrary
MCStreamer instead of just MCObjectStreamer. Address changes cannot
be as efficient as we have to use DW_LNE_set_addres, but at least
most of the logic is shared.

This will be used so that, with CodeGen still using EmitDwarfLocDirective,
llvm-gcc is able to produce debug_line sections without needing an
assembler that supports .loc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119777 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCDwarf.h
include/llvm/MC/MCStreamer.h
include/llvm/Target/TargetMachine.h
lib/CodeGen/LLVMTargetMachine.cpp
lib/MC/MCAsmStreamer.cpp
lib/MC/MCDwarf.cpp
lib/MC/MCELFStreamer.cpp
lib/MC/MCMachOStreamer.cpp
lib/Target/TargetMachine.cpp