mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 21:34:23 +00:00
First steps in ARM AsmParser support for .eabi_attribute and .arch
(Both used for Linux gnueabi) No behavioral change yet (no tests need so far) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146977 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ba4f83b4e9
commit
d7c9e08b6b
@ -101,6 +101,8 @@ class ARMAsmParser : public MCTargetAsmParser {
|
||||
bool parseDirectiveSyntax(SMLoc L);
|
||||
bool parseDirectiveReq(StringRef Name, SMLoc L);
|
||||
bool parseDirectiveUnreq(SMLoc L);
|
||||
bool parseDirectiveArch(SMLoc L);
|
||||
bool parseDirectiveEabiAttr(SMLoc L);
|
||||
|
||||
StringRef splitMnemonic(StringRef Mnemonic, unsigned &PredicationCode,
|
||||
bool &CarrySetting, unsigned &ProcessorIMod,
|
||||
@ -6121,6 +6123,10 @@ bool ARMAsmParser::ParseDirective(AsmToken DirectiveID) {
|
||||
return parseDirectiveSyntax(DirectiveID.getLoc());
|
||||
else if (IDVal == ".unreq")
|
||||
return parseDirectiveUnreq(DirectiveID.getLoc());
|
||||
else if (IDVal == ".arch")
|
||||
return parseDirectiveArch(DirectiveID.getLoc());
|
||||
else if (IDVal == ".eabi_attribute")
|
||||
return parseDirectiveEabiAttr(DirectiveID.getLoc());
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -6300,6 +6306,18 @@ bool ARMAsmParser::parseDirectiveUnreq(SMLoc L) {
|
||||
return false;
|
||||
}
|
||||
|
||||
/// parseDirectiveArch
|
||||
/// ::= .arch token
|
||||
bool ARMAsmParser::parseDirectiveArch(SMLoc L) {
|
||||
return true;
|
||||
}
|
||||
|
||||
/// parseDirectiveEabiAttr
|
||||
/// ::= .eabi_attribute int, int
|
||||
bool ARMAsmParser::parseDirectiveEabiAttr(SMLoc L) {
|
||||
return true;
|
||||
}
|
||||
|
||||
extern "C" void LLVMInitializeARMAsmLexer();
|
||||
|
||||
/// Force static initialization.
|
||||
|
Loading…
x
Reference in New Issue
Block a user