now that getOrCreateSection is all object-file specific,
give the impls an object-file-specific name. In the future
they can take different arguments etc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78495 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/ARM/ARMTargetObjectFile.h b/lib/Target/ARM/ARMTargetObjectFile.h
index ec63673..55f13b1 100644
--- a/lib/Target/ARM/ARMTargetObjectFile.h
+++ b/lib/Target/ARM/ARMTargetObjectFile.h
@@ -25,11 +25,11 @@
// That will allow not treating these as "directives".
if (TM.getSubtarget<ARMSubtarget>().isAAPCS_ABI()) {
StaticCtorSection =
- getOrCreateSection("\t.section .init_array,\"aw\",%init_array", true,
- SectionKind::getDataRel());
+ getELFSection("\t.section .init_array,\"aw\",%init_array", true,
+ SectionKind::getDataRel());
StaticDtorSection =
- getOrCreateSection("\t.section .fini_array,\"aw\",%fini_array", true,
- SectionKind::getDataRel());
+ getELFSection("\t.section .fini_array,\"aw\",%fini_array", true,
+ SectionKind::getDataRel());
}
}
};