mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
Tidy up. Update per naming conventions.
No functional change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204192 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e133cd2ea2
commit
c18837f044
@ -33,7 +33,7 @@ class DarwinAsmParser : public MCAsmParserExtension {
|
||||
getParser().addDirectiveHandler(Directive, Handler);
|
||||
}
|
||||
|
||||
bool ParseSectionSwitch(const char *Segment, const char *Section,
|
||||
bool parseSectionSwitch(const char *Segment, const char *Section,
|
||||
unsigned TAA = 0, unsigned ImplicitAlign = 0,
|
||||
unsigned StubSize = 0);
|
||||
|
||||
@ -44,332 +44,332 @@ public:
|
||||
// Call the base implementation.
|
||||
this->MCAsmParserExtension::Initialize(Parser);
|
||||
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseDirectiveDesc>(".desc");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseDirectiveIndirectSymbol>(
|
||||
addDirectiveHandler<&DarwinAsmParser::parseDirectiveDesc>(".desc");
|
||||
addDirectiveHandler<&DarwinAsmParser::parseDirectiveIndirectSymbol>(
|
||||
".indirect_symbol");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseDirectiveLsym>(".lsym");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseDirectiveSubsectionsViaSymbols>(
|
||||
addDirectiveHandler<&DarwinAsmParser::parseDirectiveLsym>(".lsym");
|
||||
addDirectiveHandler<&DarwinAsmParser::parseDirectiveSubsectionsViaSymbols>(
|
||||
".subsections_via_symbols");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseDirectiveDumpOrLoad>(".dump");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseDirectiveDumpOrLoad>(".load");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseDirectiveSection>(".section");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseDirectivePushSection>(
|
||||
addDirectiveHandler<&DarwinAsmParser::parseDirectiveDumpOrLoad>(".dump");
|
||||
addDirectiveHandler<&DarwinAsmParser::parseDirectiveDumpOrLoad>(".load");
|
||||
addDirectiveHandler<&DarwinAsmParser::parseDirectiveSection>(".section");
|
||||
addDirectiveHandler<&DarwinAsmParser::parseDirectivePushSection>(
|
||||
".pushsection");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseDirectivePopSection>(
|
||||
addDirectiveHandler<&DarwinAsmParser::parseDirectivePopSection>(
|
||||
".popsection");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseDirectivePrevious>(".previous");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseDirectiveSecureLogUnique>(
|
||||
addDirectiveHandler<&DarwinAsmParser::parseDirectivePrevious>(".previous");
|
||||
addDirectiveHandler<&DarwinAsmParser::parseDirectiveSecureLogUnique>(
|
||||
".secure_log_unique");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseDirectiveSecureLogReset>(
|
||||
addDirectiveHandler<&DarwinAsmParser::parseDirectiveSecureLogReset>(
|
||||
".secure_log_reset");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseDirectiveTBSS>(".tbss");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseDirectiveZerofill>(".zerofill");
|
||||
addDirectiveHandler<&DarwinAsmParser::parseDirectiveTBSS>(".tbss");
|
||||
addDirectiveHandler<&DarwinAsmParser::parseDirectiveZerofill>(".zerofill");
|
||||
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseDirectiveDataRegion>(
|
||||
addDirectiveHandler<&DarwinAsmParser::parseDirectiveDataRegion>(
|
||||
".data_region");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseDirectiveDataRegionEnd>(
|
||||
addDirectiveHandler<&DarwinAsmParser::parseDirectiveDataRegionEnd>(
|
||||
".end_data_region");
|
||||
|
||||
// Special section directives.
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveBss>(".bss");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveConst>(".const");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveConstData>(
|
||||
addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveBss>(".bss");
|
||||
addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveConst>(".const");
|
||||
addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveConstData>(
|
||||
".const_data");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveConstructor>(
|
||||
addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveConstructor>(
|
||||
".constructor");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveCString>(
|
||||
addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveCString>(
|
||||
".cstring");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveData>(".data");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveDestructor>(
|
||||
addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveData>(".data");
|
||||
addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveDestructor>(
|
||||
".destructor");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveDyld>(".dyld");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveFVMLibInit0>(
|
||||
addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveDyld>(".dyld");
|
||||
addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveFVMLibInit0>(
|
||||
".fvmlib_init0");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveFVMLibInit1>(
|
||||
addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveFVMLibInit1>(
|
||||
".fvmlib_init1");
|
||||
addDirectiveHandler<
|
||||
&DarwinAsmParser::ParseSectionDirectiveLazySymbolPointers>(
|
||||
&DarwinAsmParser::parseSectionDirectiveLazySymbolPointers>(
|
||||
".lazy_symbol_pointer");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseDirectiveLinkerOption>(
|
||||
addDirectiveHandler<&DarwinAsmParser::parseDirectiveLinkerOption>(
|
||||
".linker_option");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveLiteral16>(
|
||||
addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveLiteral16>(
|
||||
".literal16");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveLiteral4>(
|
||||
addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveLiteral4>(
|
||||
".literal4");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveLiteral8>(
|
||||
addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveLiteral8>(
|
||||
".literal8");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveModInitFunc>(
|
||||
addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveModInitFunc>(
|
||||
".mod_init_func");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveModTermFunc>(
|
||||
addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveModTermFunc>(
|
||||
".mod_term_func");
|
||||
addDirectiveHandler<
|
||||
&DarwinAsmParser::ParseSectionDirectiveNonLazySymbolPointers>(
|
||||
&DarwinAsmParser::parseSectionDirectiveNonLazySymbolPointers>(
|
||||
".non_lazy_symbol_pointer");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveObjCCatClsMeth>(
|
||||
addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveObjCCatClsMeth>(
|
||||
".objc_cat_cls_meth");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveObjCCatInstMeth>(
|
||||
addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveObjCCatInstMeth>(
|
||||
".objc_cat_inst_meth");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveObjCCategory>(
|
||||
addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveObjCCategory>(
|
||||
".objc_category");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveObjCClass>(
|
||||
addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveObjCClass>(
|
||||
".objc_class");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveObjCClassNames>(
|
||||
addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveObjCClassNames>(
|
||||
".objc_class_names");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveObjCClassVars>(
|
||||
addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveObjCClassVars>(
|
||||
".objc_class_vars");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveObjCClsMeth>(
|
||||
addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveObjCClsMeth>(
|
||||
".objc_cls_meth");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveObjCClsRefs>(
|
||||
addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveObjCClsRefs>(
|
||||
".objc_cls_refs");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveObjCInstMeth>(
|
||||
addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveObjCInstMeth>(
|
||||
".objc_inst_meth");
|
||||
addDirectiveHandler<
|
||||
&DarwinAsmParser::ParseSectionDirectiveObjCInstanceVars>(
|
||||
&DarwinAsmParser::parseSectionDirectiveObjCInstanceVars>(
|
||||
".objc_instance_vars");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveObjCMessageRefs>(
|
||||
addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveObjCMessageRefs>(
|
||||
".objc_message_refs");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveObjCMetaClass>(
|
||||
addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveObjCMetaClass>(
|
||||
".objc_meta_class");
|
||||
addDirectiveHandler<
|
||||
&DarwinAsmParser::ParseSectionDirectiveObjCMethVarNames>(
|
||||
&DarwinAsmParser::parseSectionDirectiveObjCMethVarNames>(
|
||||
".objc_meth_var_names");
|
||||
addDirectiveHandler<
|
||||
&DarwinAsmParser::ParseSectionDirectiveObjCMethVarTypes>(
|
||||
&DarwinAsmParser::parseSectionDirectiveObjCMethVarTypes>(
|
||||
".objc_meth_var_types");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveObjCModuleInfo>(
|
||||
addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveObjCModuleInfo>(
|
||||
".objc_module_info");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveObjCProtocol>(
|
||||
addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveObjCProtocol>(
|
||||
".objc_protocol");
|
||||
addDirectiveHandler<
|
||||
&DarwinAsmParser::ParseSectionDirectiveObjCSelectorStrs>(
|
||||
&DarwinAsmParser::parseSectionDirectiveObjCSelectorStrs>(
|
||||
".objc_selector_strs");
|
||||
addDirectiveHandler<
|
||||
&DarwinAsmParser::ParseSectionDirectiveObjCStringObject>(
|
||||
&DarwinAsmParser::parseSectionDirectiveObjCStringObject>(
|
||||
".objc_string_object");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveObjCSymbols>(
|
||||
addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveObjCSymbols>(
|
||||
".objc_symbols");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectivePICSymbolStub>(
|
||||
addDirectiveHandler<&DarwinAsmParser::parseSectionDirectivePICSymbolStub>(
|
||||
".picsymbol_stub");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveStaticConst>(
|
||||
addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveStaticConst>(
|
||||
".static_const");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveStaticData>(
|
||||
addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveStaticData>(
|
||||
".static_data");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveSymbolStub>(
|
||||
addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveSymbolStub>(
|
||||
".symbol_stub");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveTData>(".tdata");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveText>(".text");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveThreadInitFunc>(
|
||||
addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveTData>(".tdata");
|
||||
addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveText>(".text");
|
||||
addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveThreadInitFunc>(
|
||||
".thread_init_func");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveTLV>(".tlv");
|
||||
addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveTLV>(".tlv");
|
||||
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveIdent>(".ident");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseVersionMin>(".ios_version_min");
|
||||
addDirectiveHandler<&DarwinAsmParser::ParseVersionMin>(
|
||||
addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveIdent>(".ident");
|
||||
addDirectiveHandler<&DarwinAsmParser::parseVersionMin>(".ios_version_min");
|
||||
addDirectiveHandler<&DarwinAsmParser::parseVersionMin>(
|
||||
".macosx_version_min");
|
||||
}
|
||||
|
||||
bool ParseDirectiveDesc(StringRef, SMLoc);
|
||||
bool ParseDirectiveIndirectSymbol(StringRef, SMLoc);
|
||||
bool ParseDirectiveDumpOrLoad(StringRef, SMLoc);
|
||||
bool ParseDirectiveLsym(StringRef, SMLoc);
|
||||
bool ParseDirectiveLinkerOption(StringRef, SMLoc);
|
||||
bool ParseDirectiveSection(StringRef, SMLoc);
|
||||
bool ParseDirectivePushSection(StringRef, SMLoc);
|
||||
bool ParseDirectivePopSection(StringRef, SMLoc);
|
||||
bool ParseDirectivePrevious(StringRef, SMLoc);
|
||||
bool ParseDirectiveSecureLogReset(StringRef, SMLoc);
|
||||
bool ParseDirectiveSecureLogUnique(StringRef, SMLoc);
|
||||
bool ParseDirectiveSubsectionsViaSymbols(StringRef, SMLoc);
|
||||
bool ParseDirectiveTBSS(StringRef, SMLoc);
|
||||
bool ParseDirectiveZerofill(StringRef, SMLoc);
|
||||
bool ParseDirectiveDataRegion(StringRef, SMLoc);
|
||||
bool ParseDirectiveDataRegionEnd(StringRef, SMLoc);
|
||||
bool parseDirectiveDesc(StringRef, SMLoc);
|
||||
bool parseDirectiveIndirectSymbol(StringRef, SMLoc);
|
||||
bool parseDirectiveDumpOrLoad(StringRef, SMLoc);
|
||||
bool parseDirectiveLsym(StringRef, SMLoc);
|
||||
bool parseDirectiveLinkerOption(StringRef, SMLoc);
|
||||
bool parseDirectiveSection(StringRef, SMLoc);
|
||||
bool parseDirectivePushSection(StringRef, SMLoc);
|
||||
bool parseDirectivePopSection(StringRef, SMLoc);
|
||||
bool parseDirectivePrevious(StringRef, SMLoc);
|
||||
bool parseDirectiveSecureLogReset(StringRef, SMLoc);
|
||||
bool parseDirectiveSecureLogUnique(StringRef, SMLoc);
|
||||
bool parseDirectiveSubsectionsViaSymbols(StringRef, SMLoc);
|
||||
bool parseDirectiveTBSS(StringRef, SMLoc);
|
||||
bool parseDirectiveZerofill(StringRef, SMLoc);
|
||||
bool parseDirectiveDataRegion(StringRef, SMLoc);
|
||||
bool parseDirectiveDataRegionEnd(StringRef, SMLoc);
|
||||
|
||||
// Named Section Directive
|
||||
bool ParseSectionDirectiveBss(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__DATA", "__bss");
|
||||
bool parseSectionDirectiveBss(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__DATA", "__bss");
|
||||
}
|
||||
|
||||
bool ParseSectionDirectiveConst(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__TEXT", "__const");
|
||||
bool parseSectionDirectiveConst(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__TEXT", "__const");
|
||||
}
|
||||
bool ParseSectionDirectiveStaticConst(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__TEXT", "__static_const");
|
||||
bool parseSectionDirectiveStaticConst(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__TEXT", "__static_const");
|
||||
}
|
||||
bool ParseSectionDirectiveCString(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__TEXT","__cstring",
|
||||
bool parseSectionDirectiveCString(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__TEXT","__cstring",
|
||||
MachO::S_CSTRING_LITERALS);
|
||||
}
|
||||
bool ParseSectionDirectiveLiteral4(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__TEXT", "__literal4",
|
||||
bool parseSectionDirectiveLiteral4(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__TEXT", "__literal4",
|
||||
MachO::S_4BYTE_LITERALS, 4);
|
||||
}
|
||||
bool ParseSectionDirectiveLiteral8(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__TEXT", "__literal8",
|
||||
bool parseSectionDirectiveLiteral8(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__TEXT", "__literal8",
|
||||
MachO::S_8BYTE_LITERALS, 8);
|
||||
}
|
||||
bool ParseSectionDirectiveLiteral16(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__TEXT","__literal16",
|
||||
bool parseSectionDirectiveLiteral16(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__TEXT","__literal16",
|
||||
MachO::S_16BYTE_LITERALS, 16);
|
||||
}
|
||||
bool ParseSectionDirectiveConstructor(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__TEXT","__constructor");
|
||||
bool parseSectionDirectiveConstructor(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__TEXT","__constructor");
|
||||
}
|
||||
bool ParseSectionDirectiveDestructor(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__TEXT","__destructor");
|
||||
bool parseSectionDirectiveDestructor(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__TEXT","__destructor");
|
||||
}
|
||||
bool ParseSectionDirectiveFVMLibInit0(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__TEXT","__fvmlib_init0");
|
||||
bool parseSectionDirectiveFVMLibInit0(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__TEXT","__fvmlib_init0");
|
||||
}
|
||||
bool ParseSectionDirectiveFVMLibInit1(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__TEXT","__fvmlib_init1");
|
||||
bool parseSectionDirectiveFVMLibInit1(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__TEXT","__fvmlib_init1");
|
||||
}
|
||||
bool ParseSectionDirectiveSymbolStub(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__TEXT","__symbol_stub",
|
||||
bool parseSectionDirectiveSymbolStub(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__TEXT","__symbol_stub",
|
||||
MachO::S_SYMBOL_STUBS |
|
||||
MachO::S_ATTR_PURE_INSTRUCTIONS,
|
||||
// FIXME: Different on PPC and ARM.
|
||||
0, 16);
|
||||
}
|
||||
bool ParseSectionDirectivePICSymbolStub(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__TEXT","__picsymbol_stub",
|
||||
bool parseSectionDirectivePICSymbolStub(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__TEXT","__picsymbol_stub",
|
||||
MachO::S_SYMBOL_STUBS |
|
||||
MachO::S_ATTR_PURE_INSTRUCTIONS, 0, 26);
|
||||
}
|
||||
bool ParseSectionDirectiveData(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__DATA", "__data");
|
||||
bool parseSectionDirectiveData(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__DATA", "__data");
|
||||
}
|
||||
bool ParseSectionDirectiveStaticData(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__DATA", "__static_data");
|
||||
bool parseSectionDirectiveStaticData(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__DATA", "__static_data");
|
||||
}
|
||||
bool ParseSectionDirectiveNonLazySymbolPointers(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__DATA", "__nl_symbol_ptr",
|
||||
bool parseSectionDirectiveNonLazySymbolPointers(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__DATA", "__nl_symbol_ptr",
|
||||
MachO::S_NON_LAZY_SYMBOL_POINTERS, 4);
|
||||
}
|
||||
bool ParseSectionDirectiveLazySymbolPointers(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__DATA", "__la_symbol_ptr",
|
||||
bool parseSectionDirectiveLazySymbolPointers(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__DATA", "__la_symbol_ptr",
|
||||
MachO::S_LAZY_SYMBOL_POINTERS, 4);
|
||||
}
|
||||
bool ParseSectionDirectiveDyld(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__DATA", "__dyld");
|
||||
bool parseSectionDirectiveDyld(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__DATA", "__dyld");
|
||||
}
|
||||
bool ParseSectionDirectiveModInitFunc(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__DATA", "__mod_init_func",
|
||||
bool parseSectionDirectiveModInitFunc(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__DATA", "__mod_init_func",
|
||||
MachO::S_MOD_INIT_FUNC_POINTERS, 4);
|
||||
}
|
||||
bool ParseSectionDirectiveModTermFunc(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__DATA", "__mod_term_func",
|
||||
bool parseSectionDirectiveModTermFunc(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__DATA", "__mod_term_func",
|
||||
MachO::S_MOD_TERM_FUNC_POINTERS, 4);
|
||||
}
|
||||
bool ParseSectionDirectiveConstData(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__DATA", "__const");
|
||||
bool parseSectionDirectiveConstData(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__DATA", "__const");
|
||||
}
|
||||
bool ParseSectionDirectiveObjCClass(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__OBJC", "__class",
|
||||
bool parseSectionDirectiveObjCClass(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__OBJC", "__class",
|
||||
MachO::S_ATTR_NO_DEAD_STRIP);
|
||||
}
|
||||
bool ParseSectionDirectiveObjCMetaClass(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__OBJC", "__meta_class",
|
||||
bool parseSectionDirectiveObjCMetaClass(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__OBJC", "__meta_class",
|
||||
MachO::S_ATTR_NO_DEAD_STRIP);
|
||||
}
|
||||
bool ParseSectionDirectiveObjCCatClsMeth(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__OBJC", "__cat_cls_meth",
|
||||
bool parseSectionDirectiveObjCCatClsMeth(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__OBJC", "__cat_cls_meth",
|
||||
MachO::S_ATTR_NO_DEAD_STRIP);
|
||||
}
|
||||
bool ParseSectionDirectiveObjCCatInstMeth(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__OBJC", "__cat_inst_meth",
|
||||
bool parseSectionDirectiveObjCCatInstMeth(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__OBJC", "__cat_inst_meth",
|
||||
MachO::S_ATTR_NO_DEAD_STRIP);
|
||||
}
|
||||
bool ParseSectionDirectiveObjCProtocol(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__OBJC", "__protocol",
|
||||
bool parseSectionDirectiveObjCProtocol(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__OBJC", "__protocol",
|
||||
MachO::S_ATTR_NO_DEAD_STRIP);
|
||||
}
|
||||
bool ParseSectionDirectiveObjCStringObject(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__OBJC", "__string_object",
|
||||
bool parseSectionDirectiveObjCStringObject(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__OBJC", "__string_object",
|
||||
MachO::S_ATTR_NO_DEAD_STRIP);
|
||||
}
|
||||
bool ParseSectionDirectiveObjCClsMeth(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__OBJC", "__cls_meth",
|
||||
bool parseSectionDirectiveObjCClsMeth(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__OBJC", "__cls_meth",
|
||||
MachO::S_ATTR_NO_DEAD_STRIP);
|
||||
}
|
||||
bool ParseSectionDirectiveObjCInstMeth(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__OBJC", "__inst_meth",
|
||||
bool parseSectionDirectiveObjCInstMeth(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__OBJC", "__inst_meth",
|
||||
MachO::S_ATTR_NO_DEAD_STRIP);
|
||||
}
|
||||
bool ParseSectionDirectiveObjCClsRefs(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__OBJC", "__cls_refs",
|
||||
bool parseSectionDirectiveObjCClsRefs(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__OBJC", "__cls_refs",
|
||||
MachO::S_ATTR_NO_DEAD_STRIP |
|
||||
MachO::S_LITERAL_POINTERS, 4);
|
||||
}
|
||||
bool ParseSectionDirectiveObjCMessageRefs(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__OBJC", "__message_refs",
|
||||
bool parseSectionDirectiveObjCMessageRefs(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__OBJC", "__message_refs",
|
||||
MachO::S_ATTR_NO_DEAD_STRIP |
|
||||
MachO::S_LITERAL_POINTERS, 4);
|
||||
}
|
||||
bool ParseSectionDirectiveObjCSymbols(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__OBJC", "__symbols",
|
||||
bool parseSectionDirectiveObjCSymbols(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__OBJC", "__symbols",
|
||||
MachO::S_ATTR_NO_DEAD_STRIP);
|
||||
}
|
||||
bool ParseSectionDirectiveObjCCategory(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__OBJC", "__category",
|
||||
bool parseSectionDirectiveObjCCategory(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__OBJC", "__category",
|
||||
MachO::S_ATTR_NO_DEAD_STRIP);
|
||||
}
|
||||
bool ParseSectionDirectiveObjCClassVars(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__OBJC", "__class_vars",
|
||||
bool parseSectionDirectiveObjCClassVars(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__OBJC", "__class_vars",
|
||||
MachO::S_ATTR_NO_DEAD_STRIP);
|
||||
}
|
||||
bool ParseSectionDirectiveObjCInstanceVars(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__OBJC", "__instance_vars",
|
||||
bool parseSectionDirectiveObjCInstanceVars(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__OBJC", "__instance_vars",
|
||||
MachO::S_ATTR_NO_DEAD_STRIP);
|
||||
}
|
||||
bool ParseSectionDirectiveObjCModuleInfo(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__OBJC", "__module_info",
|
||||
bool parseSectionDirectiveObjCModuleInfo(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__OBJC", "__module_info",
|
||||
MachO::S_ATTR_NO_DEAD_STRIP);
|
||||
}
|
||||
bool ParseSectionDirectiveObjCClassNames(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__TEXT", "__cstring",
|
||||
bool parseSectionDirectiveObjCClassNames(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__TEXT", "__cstring",
|
||||
MachO::S_CSTRING_LITERALS);
|
||||
}
|
||||
bool ParseSectionDirectiveObjCMethVarTypes(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__TEXT", "__cstring",
|
||||
bool parseSectionDirectiveObjCMethVarTypes(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__TEXT", "__cstring",
|
||||
MachO::S_CSTRING_LITERALS);
|
||||
}
|
||||
bool ParseSectionDirectiveObjCMethVarNames(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__TEXT", "__cstring",
|
||||
bool parseSectionDirectiveObjCMethVarNames(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__TEXT", "__cstring",
|
||||
MachO::S_CSTRING_LITERALS);
|
||||
}
|
||||
bool ParseSectionDirectiveObjCSelectorStrs(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__OBJC", "__selector_strs",
|
||||
bool parseSectionDirectiveObjCSelectorStrs(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__OBJC", "__selector_strs",
|
||||
MachO::S_CSTRING_LITERALS);
|
||||
}
|
||||
bool ParseSectionDirectiveTData(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__DATA", "__thread_data",
|
||||
bool parseSectionDirectiveTData(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__DATA", "__thread_data",
|
||||
MachO::S_THREAD_LOCAL_REGULAR);
|
||||
}
|
||||
bool ParseSectionDirectiveText(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__TEXT", "__text",
|
||||
bool parseSectionDirectiveText(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__TEXT", "__text",
|
||||
MachO::S_ATTR_PURE_INSTRUCTIONS);
|
||||
}
|
||||
bool ParseSectionDirectiveTLV(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__DATA", "__thread_vars",
|
||||
bool parseSectionDirectiveTLV(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__DATA", "__thread_vars",
|
||||
MachO::S_THREAD_LOCAL_VARIABLES);
|
||||
}
|
||||
bool ParseSectionDirectiveIdent(StringRef, SMLoc) {
|
||||
bool parseSectionDirectiveIdent(StringRef, SMLoc) {
|
||||
// Darwin silently ignores the .ident directive.
|
||||
getParser().eatToEndOfStatement();
|
||||
return false;
|
||||
}
|
||||
bool ParseSectionDirectiveThreadInitFunc(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__DATA", "__thread_init",
|
||||
bool parseSectionDirectiveThreadInitFunc(StringRef, SMLoc) {
|
||||
return parseSectionSwitch("__DATA", "__thread_init",
|
||||
MachO::S_THREAD_LOCAL_INIT_FUNCTION_POINTERS);
|
||||
}
|
||||
bool ParseVersionMin(StringRef, SMLoc);
|
||||
bool parseVersionMin(StringRef, SMLoc);
|
||||
|
||||
};
|
||||
|
||||
} // end anonymous namespace
|
||||
|
||||
bool DarwinAsmParser::ParseSectionSwitch(const char *Segment,
|
||||
bool DarwinAsmParser::parseSectionSwitch(const char *Segment,
|
||||
const char *Section,
|
||||
unsigned TAA, unsigned Align,
|
||||
unsigned StubSize) {
|
||||
@ -398,9 +398,9 @@ bool DarwinAsmParser::ParseSectionSwitch(const char *Segment,
|
||||
return false;
|
||||
}
|
||||
|
||||
/// ParseDirectiveDesc
|
||||
/// parseDirectiveDesc
|
||||
/// ::= .desc identifier , expression
|
||||
bool DarwinAsmParser::ParseDirectiveDesc(StringRef, SMLoc) {
|
||||
bool DarwinAsmParser::parseDirectiveDesc(StringRef, SMLoc) {
|
||||
StringRef Name;
|
||||
if (getParser().parseIdentifier(Name))
|
||||
return TokError("expected identifier in directive");
|
||||
@ -427,9 +427,9 @@ bool DarwinAsmParser::ParseDirectiveDesc(StringRef, SMLoc) {
|
||||
return false;
|
||||
}
|
||||
|
||||
/// ParseDirectiveIndirectSymbol
|
||||
/// parseDirectiveIndirectSymbol
|
||||
/// ::= .indirect_symbol identifier
|
||||
bool DarwinAsmParser::ParseDirectiveIndirectSymbol(StringRef, SMLoc Loc) {
|
||||
bool DarwinAsmParser::parseDirectiveIndirectSymbol(StringRef, SMLoc Loc) {
|
||||
const MCSectionMachO *Current = static_cast<const MCSectionMachO*>(
|
||||
getStreamer().getCurrentSection().first);
|
||||
MachO::SectionType SectionType = Current->getType();
|
||||
@ -460,9 +460,9 @@ bool DarwinAsmParser::ParseDirectiveIndirectSymbol(StringRef, SMLoc Loc) {
|
||||
return false;
|
||||
}
|
||||
|
||||
/// ParseDirectiveDumpOrLoad
|
||||
/// parseDirectiveDumpOrLoad
|
||||
/// ::= ( .dump | .load ) "filename"
|
||||
bool DarwinAsmParser::ParseDirectiveDumpOrLoad(StringRef Directive,
|
||||
bool DarwinAsmParser::parseDirectiveDumpOrLoad(StringRef Directive,
|
||||
SMLoc IDLoc) {
|
||||
bool IsDump = Directive == ".dump";
|
||||
if (getLexer().isNot(AsmToken::String))
|
||||
@ -485,7 +485,7 @@ bool DarwinAsmParser::ParseDirectiveDumpOrLoad(StringRef Directive,
|
||||
|
||||
/// ParseDirectiveLinkerOption
|
||||
/// ::= .linker_option "string" ( , "string" )*
|
||||
bool DarwinAsmParser::ParseDirectiveLinkerOption(StringRef IDVal, SMLoc) {
|
||||
bool DarwinAsmParser::parseDirectiveLinkerOption(StringRef IDVal, SMLoc) {
|
||||
SmallVector<std::string, 4> Args;
|
||||
for (;;) {
|
||||
if (getLexer().isNot(AsmToken::String))
|
||||
@ -510,9 +510,9 @@ bool DarwinAsmParser::ParseDirectiveLinkerOption(StringRef IDVal, SMLoc) {
|
||||
return false;
|
||||
}
|
||||
|
||||
/// ParseDirectiveLsym
|
||||
/// parseDirectiveLsym
|
||||
/// ::= .lsym identifier , expression
|
||||
bool DarwinAsmParser::ParseDirectiveLsym(StringRef, SMLoc) {
|
||||
bool DarwinAsmParser::parseDirectiveLsym(StringRef, SMLoc) {
|
||||
StringRef Name;
|
||||
if (getParser().parseIdentifier(Name))
|
||||
return TokError("expected identifier in directive");
|
||||
@ -540,9 +540,9 @@ bool DarwinAsmParser::ParseDirectiveLsym(StringRef, SMLoc) {
|
||||
return TokError("directive '.lsym' is unsupported");
|
||||
}
|
||||
|
||||
/// ParseDirectiveSection:
|
||||
/// parseDirectiveSection:
|
||||
/// ::= .section identifier (',' identifier)*
|
||||
bool DarwinAsmParser::ParseDirectiveSection(StringRef, SMLoc) {
|
||||
bool DarwinAsmParser::parseDirectiveSection(StringRef, SMLoc) {
|
||||
SMLoc Loc = getLexer().getLoc();
|
||||
|
||||
StringRef SectionName;
|
||||
@ -589,10 +589,10 @@ bool DarwinAsmParser::ParseDirectiveSection(StringRef, SMLoc) {
|
||||
|
||||
/// ParseDirectivePushSection:
|
||||
/// ::= .pushsection identifier (',' identifier)*
|
||||
bool DarwinAsmParser::ParseDirectivePushSection(StringRef S, SMLoc Loc) {
|
||||
bool DarwinAsmParser::parseDirectivePushSection(StringRef S, SMLoc Loc) {
|
||||
getStreamer().PushSection();
|
||||
|
||||
if (ParseDirectiveSection(S, Loc)) {
|
||||
if (parseDirectiveSection(S, Loc)) {
|
||||
getStreamer().PopSection();
|
||||
return true;
|
||||
}
|
||||
@ -602,7 +602,7 @@ bool DarwinAsmParser::ParseDirectivePushSection(StringRef S, SMLoc Loc) {
|
||||
|
||||
/// ParseDirectivePopSection:
|
||||
/// ::= .popsection
|
||||
bool DarwinAsmParser::ParseDirectivePopSection(StringRef, SMLoc) {
|
||||
bool DarwinAsmParser::parseDirectivePopSection(StringRef, SMLoc) {
|
||||
if (!getStreamer().PopSection())
|
||||
return TokError(".popsection without corresponding .pushsection");
|
||||
return false;
|
||||
@ -610,7 +610,7 @@ bool DarwinAsmParser::ParseDirectivePopSection(StringRef, SMLoc) {
|
||||
|
||||
/// ParseDirectivePrevious:
|
||||
/// ::= .previous
|
||||
bool DarwinAsmParser::ParseDirectivePrevious(StringRef DirName, SMLoc) {
|
||||
bool DarwinAsmParser::parseDirectivePrevious(StringRef DirName, SMLoc) {
|
||||
MCSectionSubPair PreviousSection = getStreamer().getPreviousSection();
|
||||
if (PreviousSection.first == NULL)
|
||||
return TokError(".previous without corresponding .section");
|
||||
@ -620,7 +620,7 @@ bool DarwinAsmParser::ParseDirectivePrevious(StringRef DirName, SMLoc) {
|
||||
|
||||
/// ParseDirectiveSecureLogUnique
|
||||
/// ::= .secure_log_unique ... message ...
|
||||
bool DarwinAsmParser::ParseDirectiveSecureLogUnique(StringRef, SMLoc IDLoc) {
|
||||
bool DarwinAsmParser::parseDirectiveSecureLogUnique(StringRef, SMLoc IDLoc) {
|
||||
StringRef LogMessage = getParser().parseStringToEndOfStatement();
|
||||
if (getLexer().isNot(AsmToken::EndOfStatement))
|
||||
return TokError("unexpected token in '.secure_log_unique' directive");
|
||||
@ -661,7 +661,7 @@ bool DarwinAsmParser::ParseDirectiveSecureLogUnique(StringRef, SMLoc IDLoc) {
|
||||
|
||||
/// ParseDirectiveSecureLogReset
|
||||
/// ::= .secure_log_reset
|
||||
bool DarwinAsmParser::ParseDirectiveSecureLogReset(StringRef, SMLoc IDLoc) {
|
||||
bool DarwinAsmParser::parseDirectiveSecureLogReset(StringRef, SMLoc IDLoc) {
|
||||
if (getLexer().isNot(AsmToken::EndOfStatement))
|
||||
return TokError("unexpected token in '.secure_log_reset' directive");
|
||||
|
||||
@ -672,9 +672,9 @@ bool DarwinAsmParser::ParseDirectiveSecureLogReset(StringRef, SMLoc IDLoc) {
|
||||
return false;
|
||||
}
|
||||
|
||||
/// ParseDirectiveSubsectionsViaSymbols
|
||||
/// parseDirectiveSubsectionsViaSymbols
|
||||
/// ::= .subsections_via_symbols
|
||||
bool DarwinAsmParser::ParseDirectiveSubsectionsViaSymbols(StringRef, SMLoc) {
|
||||
bool DarwinAsmParser::parseDirectiveSubsectionsViaSymbols(StringRef, SMLoc) {
|
||||
if (getLexer().isNot(AsmToken::EndOfStatement))
|
||||
return TokError("unexpected token in '.subsections_via_symbols' directive");
|
||||
|
||||
@ -687,7 +687,7 @@ bool DarwinAsmParser::ParseDirectiveSubsectionsViaSymbols(StringRef, SMLoc) {
|
||||
|
||||
/// ParseDirectiveTBSS
|
||||
/// ::= .tbss identifier, size, align
|
||||
bool DarwinAsmParser::ParseDirectiveTBSS(StringRef, SMLoc) {
|
||||
bool DarwinAsmParser::parseDirectiveTBSS(StringRef, SMLoc) {
|
||||
SMLoc IDLoc = getLexer().getLoc();
|
||||
StringRef Name;
|
||||
if (getParser().parseIdentifier(Name))
|
||||
@ -743,7 +743,7 @@ bool DarwinAsmParser::ParseDirectiveTBSS(StringRef, SMLoc) {
|
||||
/// ParseDirectiveZerofill
|
||||
/// ::= .zerofill segname , sectname [, identifier , size_expression [
|
||||
/// , align_expression ]]
|
||||
bool DarwinAsmParser::ParseDirectiveZerofill(StringRef, SMLoc) {
|
||||
bool DarwinAsmParser::parseDirectiveZerofill(StringRef, SMLoc) {
|
||||
StringRef Segment;
|
||||
if (getParser().parseIdentifier(Segment))
|
||||
return TokError("expected segment name after '.zerofill' directive");
|
||||
@ -829,7 +829,7 @@ bool DarwinAsmParser::ParseDirectiveZerofill(StringRef, SMLoc) {
|
||||
|
||||
/// ParseDirectiveDataRegion
|
||||
/// ::= .data_region [ ( jt8 | jt16 | jt32 ) ]
|
||||
bool DarwinAsmParser::ParseDirectiveDataRegion(StringRef, SMLoc) {
|
||||
bool DarwinAsmParser::parseDirectiveDataRegion(StringRef, SMLoc) {
|
||||
if (getLexer().is(AsmToken::EndOfStatement)) {
|
||||
Lex();
|
||||
getStreamer().EmitDataRegion(MCDR_DataRegion);
|
||||
@ -854,7 +854,7 @@ bool DarwinAsmParser::ParseDirectiveDataRegion(StringRef, SMLoc) {
|
||||
|
||||
/// ParseDirectiveDataRegionEnd
|
||||
/// ::= .end_data_region
|
||||
bool DarwinAsmParser::ParseDirectiveDataRegionEnd(StringRef, SMLoc) {
|
||||
bool DarwinAsmParser::parseDirectiveDataRegionEnd(StringRef, SMLoc) {
|
||||
if (getLexer().isNot(AsmToken::EndOfStatement))
|
||||
return TokError("unexpected token in '.end_data_region' directive");
|
||||
|
||||
@ -863,10 +863,10 @@ bool DarwinAsmParser::ParseDirectiveDataRegionEnd(StringRef, SMLoc) {
|
||||
return false;
|
||||
}
|
||||
|
||||
/// ParseVersionMin
|
||||
/// parseVersionMin
|
||||
/// ::= .ios_version_min major,minor[,update]
|
||||
/// ::= .macosx_version_min major,minor[,update]
|
||||
bool DarwinAsmParser::ParseVersionMin(StringRef Directive, SMLoc) {
|
||||
bool DarwinAsmParser::parseVersionMin(StringRef Directive, SMLoc) {
|
||||
int64_t Major = 0, Minor = 0, Update = 0;
|
||||
int Kind = StringSwitch<int>(Directive)
|
||||
.Case(".ios_version_min", MCVM_IOSVersionMin)
|
||||
|
Loading…
x
Reference in New Issue
Block a user