the masm backend. If anyone cares about masm in the future,
we'll have semantic sections it can hang off of.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78096
91177308-0d34-0410-b5e6-
96231b3b80d8
/// directive for data sections.
const char *DataSectionStartSuffix; // Defaults to "".
- /// SectionEndDirectiveSuffix - If non-null, the asm printer will close each
- /// section with the section name and this suffix printed.
- const char *SectionEndDirectiveSuffix;// Defaults to null.
-
/// JumpTableDirective - if non-null, the directive to emit before a jump
/// table.
const char *JumpTableDirective;
const char *getDataSectionStartSuffix() const {
return DataSectionStartSuffix;
}
- const char *getSectionEndDirectiveSuffix() const {
- return SectionEndDirectiveSuffix;
- }
const char *getGlobalDirective() const {
return GlobalDirective;
}
// If we're already in this section, we're done.
if (CurrentSection == NS) return;
- // Close the current section, if applicable.
- if (NS != 0 && TAI->getSectionEndDirectiveSuffix())
- O << NS->getName() << TAI->getSectionEndDirectiveSuffix() << '\n';
-
CurrentSection = NS;
if (NS != 0) {
SwitchToSectionDirective = "\t.section\t";
TextSectionStartSuffix = "";
DataSectionStartSuffix = "";
- SectionEndDirectiveSuffix = 0;
JumpTableDirective = 0;
GlobalDirective = "\t.globl\t";
SetDirective = 0;
SwitchToSectionDirective = "";
TextSectionStartSuffix = "\tSEGMENT PARA 'CODE'";
DataSectionStartSuffix = "\tSEGMENT PARA 'DATA'";
- SectionEndDirectiveSuffix = "\tends\n";
}
// Instantiate default implementation.