diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-08 23:23:25 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-08 23:23:25 +0000 |
commit | 27a973245022c0ed4e69b291daf79d6d99c1844f (patch) | |
tree | fbda319657b1f794e545e4b182b659b354b69d9d /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | d802615d0cc2444160f3f1130fda87dd0d93f6af (diff) | |
download | bcm5719-llvm-27a973245022c0ed4e69b291daf79d6d99c1844f.tar.gz bcm5719-llvm-27a973245022c0ed4e69b291daf79d6d99c1844f.zip |
simplify EmitSectionOffset to always use .set if it is
available, the only thing this affects is that we produce
.set in one case we didn't before, which shouldn't harm
anything. Make EmitSectionOffset call EmitDifference
instead of duplicating it.
llvm-svn: 98005
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 247a3c57aab..9b50d91183f 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -376,8 +376,8 @@ void DwarfDebug::addLabel(DIE *Die, unsigned Attribute, unsigned Form, /// void DwarfDebug::addSectionOffset(DIE *Die, unsigned Attribute, unsigned Form, const MCSymbol *Label,const MCSymbol *Section, - bool isEH, bool useSet) { - DIEValue *Value = new DIESectionOffset(Label, Section, isEH, useSet); + bool isEH) { + DIEValue *Value = new DIESectionOffset(Label, Section, isEH); DIEValues.push_back(Value); Die->addValue(Attribute, Form, Value); } |