mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-31 07:43:37 +00:00
Darwin 'as' silently ignores the '.ident' directive.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127258 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cdc06fa3c7
commit
8270da8baf
@ -100,6 +100,8 @@ public:
|
||||
AddDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveText>(".text");
|
||||
AddDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveThreadInitFunc>(".thread_init_func");
|
||||
AddDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveTLV>(".tlv");
|
||||
|
||||
AddDirectiveHandler<&DarwinAsmParser::ParseSectionDirectiveIdent>(".ident");
|
||||
}
|
||||
|
||||
bool ParseDirectiveDesc(StringRef, SMLoc);
|
||||
@ -277,6 +279,11 @@ public:
|
||||
return ParseSectionSwitch("__DATA", "__thread_vars",
|
||||
MCSectionMachO::S_THREAD_LOCAL_VARIABLES);
|
||||
}
|
||||
bool ParseSectionDirectiveIdent(StringRef, SMLoc) {
|
||||
// Darwin silently ignores the .ident directive.
|
||||
getParser().EatToEndOfStatement();
|
||||
return false;
|
||||
}
|
||||
bool ParseSectionDirectiveThreadInitFunc(StringRef, SMLoc) {
|
||||
return ParseSectionSwitch("__DATA", "__thread_init",
|
||||
MCSectionMachO::S_THREAD_LOCAL_INIT_FUNCTION_POINTERS);
|
||||
|
Loading…
x
Reference in New Issue
Block a user