[#llvm-TargetLoweringObjectFileELF-getSectionForConstant-07] = xref:llvm.adoc[llvm]::xref:llvm/TargetLoweringObjectFileELF.adoc[TargetLoweringObjectFileELF]::getSectionForConstant :relfileprefix: ../../ :mrdocs: Given a constant with the SectionKind, return a section that it should be placed in. == Synopsis Declared in `<llvm/CodeGen/TargetLoweringObjectFileImpl.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual xref:llvm/MCSection.adoc[MCSection]* getSectionForConstant( xref:llvm/DataLayout.adoc[DataLayout] const& DL, xref:llvm/SectionKind.adoc[SectionKind] Kind, xref:llvm/Constant.adoc[Constant] const* C, xref:llvm/Align.adoc[Align]& Alignment, xref:llvm/Function.adoc[Function] const* F) const override; ---- == Return Value The section that should hold the constant. == Parameters [cols="1,4"] |=== | Name| Description | *DL* | Data layout of the module. | *Kind* | Section kind classifying the constant. | *C* | Constant to place; may be null. | *Alignment* | Alignment required for the constant; may be increased. | *F* | Function associated with the constant, if any; may be null. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#