mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-21 19:20:28 +00:00
Add ReadOnlySection directive.
llvm-svn: 35015
This commit is contained in:
parent
7513c95267
commit
6bf2f3665e
@ -203,7 +203,12 @@ namespace llvm {
|
||||
const char *FourByteConstantSection;
|
||||
const char *EightByteConstantSection;
|
||||
const char *SixteenByteConstantSection;
|
||||
|
||||
|
||||
/// ReadOnlySection - This is the directive that is emitted to switch to a
|
||||
/// read-only section for constant data (e.g. data declared const,
|
||||
/// jump tables).
|
||||
const char *ReadOnlySection; // Defaults to NULL
|
||||
|
||||
//===--- Global Variable Emission Directives --------------------------===//
|
||||
|
||||
/// GlobalDirective - This is the directive used to declare a global entity.
|
||||
@ -474,6 +479,9 @@ namespace llvm {
|
||||
const char *getSixteenByteConstantSection() const {
|
||||
return SixteenByteConstantSection;
|
||||
}
|
||||
const char *getReadOnlySection() const {
|
||||
return ReadOnlySection;
|
||||
}
|
||||
const char *getGlobalDirective() const {
|
||||
return GlobalDirective;
|
||||
}
|
||||
|
@ -60,6 +60,7 @@ TargetAsmInfo::TargetAsmInfo() :
|
||||
FourByteConstantSection(0),
|
||||
EightByteConstantSection(0),
|
||||
SixteenByteConstantSection(0),
|
||||
ReadOnlySection(0),
|
||||
GlobalDirective(0),
|
||||
SetDirective(0),
|
||||
LCOMMDirective(0),
|
||||
|
Loading…
Reference in New Issue
Block a user