Fix a FIXME: DwarfRequiresRelocationForSectionOffset is the same as
[oota-llvm.git] / lib / CodeGen / AsmPrinter / DwarfDebug.cpp
index 1e4ef5fbdbb8a881e5b67645a173b5a36acd9872..d0ab258b29c92fc4aa30bc5dd12e8e05ec77cf77 100644 (file)
@@ -566,7 +566,7 @@ CompileUnit *DwarfDebug::constructCompileUnit(const MDNode *N) {
   NewCU->addUInt(Die, dwarf::DW_AT_low_pc, dwarf::DW_FORM_addr, 0);
   // DW_AT_stmt_list is a offset of line number information for this
   // compile unit in debug_line section.
-  if (Asm->MAI->doesDwarfRequireRelocationForSectionOffset())
+  if (Asm->MAI->doesDwarfUseRelocationsAcrossSections())
     NewCU->addLabel(Die, dwarf::DW_AT_stmt_list, dwarf::DW_FORM_data4,
                     Asm->GetTempSymbol("section_line"));
   else