mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-22 10:24:26 +00:00
Add Support For .bss Named Section Directive For Darwin Targets.
Patch by Nicholas White. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191824 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -71,6 +71,7 @@ public:
|
|||||||
".end_data_region");
|
".end_data_region");
|
||||||
|
|
||||||
// Special section directives.
|
// Special section directives.
|
||||||
|
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveBss>(".bss");
|
||||||
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveConst>(".const");
|
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveConst>(".const");
|
||||||
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveConstData>(
|
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveConstData>(
|
||||||
".const_data");
|
".const_data");
|
||||||
@ -182,6 +183,10 @@ public:
|
|||||||
bool ParseDirectiveDataRegionEnd(StringRef, SMLoc);
|
bool ParseDirectiveDataRegionEnd(StringRef, SMLoc);
|
||||||
|
|
||||||
// Named Section Directive
|
// Named Section Directive
|
||||||
|
bool ParseSectionDirectiveBss(StringRef, SMLoc) {
|
||||||
|
return ParseSectionSwitch("__DATA", "__bss");
|
||||||
|
}
|
||||||
|
|
||||||
bool ParseSectionDirectiveConst(StringRef, SMLoc) {
|
bool ParseSectionDirectiveConst(StringRef, SMLoc) {
|
||||||
return ParseSectionSwitch("__TEXT", "__const");
|
return ParseSectionSwitch("__TEXT", "__const");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user