diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-11-19 02:26:16 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-11-19 02:26:16 +0000 |
commit | 195a0ce484cd12a5adae9184188f6d0fb52b84c0 (patch) | |
tree | 75909dd2fcd8778aaf56da67446bf1b6f4615d9c /lib/Target/TargetMachine.cpp | |
parent | 602890dd8ef53c6e8d60a2752b97940f7a58de1a (diff) |
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
Diffstat (limited to 'lib/Target/TargetMachine.cpp')
-rw-r--r-- | lib/Target/TargetMachine.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/TargetMachine.cpp b/lib/Target/TargetMachine.cpp index 705b1c097e..c4790a2899 100644 --- a/lib/Target/TargetMachine.cpp +++ b/lib/Target/TargetMachine.cpp @@ -219,7 +219,8 @@ FunctionSections("ffunction-sections", TargetMachine::TargetMachine(const Target &T) : TheTarget(T), AsmInfo(0), - MCRelaxAll(false) { + MCRelaxAll(false), + MCUseLoc(true) { // Typically it will be subtargets that will adjust FloatABIType from Default // to Soft or Hard. if (UseSoftFloat) |