summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorJason W Kim <jason.w.kim.2009@gmail.com>2011-12-20 17:38:12 +0000
committerJason W Kim <jason.w.kim.2009@gmail.com>2011-12-20 17:38:12 +0000
commit135d244b56f9d1c7f83b5dff76e91fc76151aed4 (patch)
tree25e0fc9bcefdf10c67dfaf61dbf34c7e8a5f053a /llvm/lib/Target
parent64d9257e38a08bc836508a4159723bc1e39194ad (diff)
downloadbcm5719-llvm-135d244b56f9d1c7f83b5dff76e91fc76151aed4.tar.gz
bcm5719-llvm-135d244b56f9d1c7f83b5dff76e91fc76151aed4.zip
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) llvm-svn: 146977
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
index ac7532bad45..93e84040b7b 100644
--- a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
+++ b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
@@ -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.
OpenPOWER on IntegriCloud