getSectionForConstant overloads
Synopses
Declared in <llvm/Target/TargetLoweringObjectFile.h>
Given a constant with the SectionKind, return a section that it should be placed in.
virtual
MCSection*
getSectionForConstant(
DataLayout const& DL,
SectionKind Kind,
Constant const* C,
Align& Alignment,
Function const* F) const;
Similar to the function above, but append SectionSuffix to the section name.
virtual
MCSection*
getSectionForConstant(
DataLayout const& DL,
SectionKind Kind,
Constant const* C,
Align& Alignment,
Function const* F,
StringRef SectionSuffix) const;
Return Value
-
The section that should hold the constant.
-
The section that should hold the constant, with
SectionSuffixappended to its name.
Parameters
Name |
Description |
DL |
Data layout used to size and align the constant. |
Kind |
Section kind classifying the constant. |
C |
Constant being placed, or nullptr when not applicable. |
Alignment |
In/out alignment required for the constant. |
F |
Function owning the constant pool entry, if any. |
SectionSuffix |
Suffix appended to the chosen section name. |
Created with MrDocs