mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-28 09:31:03 +00:00
Basic support for small sections
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53907 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b6f08eb1e6
commit
62d590cc8e
@ -39,6 +39,9 @@ namespace llvm {
|
|||||||
ROData, ///< Readonly data section
|
ROData, ///< Readonly data section
|
||||||
RODataMergeStr, ///< Readonly data section (mergeable strings)
|
RODataMergeStr, ///< Readonly data section (mergeable strings)
|
||||||
RODataMergeConst, ///< Readonly data section (mergeable constants)
|
RODataMergeConst, ///< Readonly data section (mergeable constants)
|
||||||
|
SmallData, ///< Small data section
|
||||||
|
SmallBSS, ///< Small bss section
|
||||||
|
SmallROData, ///< Small readonly section
|
||||||
ThreadData, ///< Initialized TLS data objects
|
ThreadData, ///< Initialized TLS data objects
|
||||||
ThreadBSS ///< Uninitialized TLS data objects
|
ThreadBSS ///< Uninitialized TLS data objects
|
||||||
};
|
};
|
||||||
@ -119,6 +122,21 @@ namespace llvm {
|
|||||||
const char *ReadOnlySection; // Defaults to NULL
|
const char *ReadOnlySection; // Defaults to NULL
|
||||||
const Section *ReadOnlySection_;
|
const Section *ReadOnlySection_;
|
||||||
|
|
||||||
|
/// SmallDataSection - This is the directive that is emitted to switch to a
|
||||||
|
/// small data section.
|
||||||
|
///
|
||||||
|
const Section *SmallDataSection; // Defaults to NULL
|
||||||
|
|
||||||
|
/// SmallBSSSection - This is the directive that is emitted to switch to a
|
||||||
|
/// small bss section.
|
||||||
|
///
|
||||||
|
const Section *SmallBSSSection; // Defaults to NULL
|
||||||
|
|
||||||
|
/// SmallRODataSection - This is the directive that is emitted to switch to
|
||||||
|
/// a small read-only data section.
|
||||||
|
///
|
||||||
|
const Section *SmallRODataSection; // Defaults to NULL
|
||||||
|
|
||||||
/// TLSDataSection - Section directive for Thread Local data.
|
/// TLSDataSection - Section directive for Thread Local data.
|
||||||
///
|
///
|
||||||
const char *TLSDataSection;// Defaults to ".section .tdata,"awT",@progbits".
|
const char *TLSDataSection;// Defaults to ".section .tdata,"awT",@progbits".
|
||||||
@ -549,6 +567,15 @@ namespace llvm {
|
|||||||
const Section *getReadOnlySection_() const {
|
const Section *getReadOnlySection_() const {
|
||||||
return ReadOnlySection_;
|
return ReadOnlySection_;
|
||||||
}
|
}
|
||||||
|
const Section *getSmallDataSection() const {
|
||||||
|
return SmallDataSection;
|
||||||
|
}
|
||||||
|
const Section *getSmallBSSSection() const {
|
||||||
|
return SmallBSSSection;
|
||||||
|
}
|
||||||
|
const Section *getSmallRODataSection() const {
|
||||||
|
return SmallRODataSection;
|
||||||
|
}
|
||||||
const char *getTLSDataSection() const {
|
const char *getTLSDataSection() const {
|
||||||
return TLSDataSection;
|
return TLSDataSection;
|
||||||
}
|
}
|
||||||
|
@ -34,6 +34,9 @@ TargetAsmInfo::TargetAsmInfo() :
|
|||||||
BSSSection_(0),
|
BSSSection_(0),
|
||||||
ReadOnlySection(0),
|
ReadOnlySection(0),
|
||||||
ReadOnlySection_(0),
|
ReadOnlySection_(0),
|
||||||
|
SmallDataSection(0),
|
||||||
|
SmallBSSSection(0),
|
||||||
|
SmallRODataSection(0),
|
||||||
TLSDataSection("\t.section .tdata,\"awT\",@progbits"),
|
TLSDataSection("\t.section .tdata,\"awT\",@progbits"),
|
||||||
TLSDataSection_(0),
|
TLSDataSection_(0),
|
||||||
TLSBSSSection("\t.section .tbss,\"awT\",@nobits"),
|
TLSBSSSection("\t.section .tbss,\"awT\",@nobits"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user