summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2013-12-20 07:21:16 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2013-12-20 07:21:16 +0000
commit6e6c239e338c91e8d429882a2cb307fa67054ed4 (patch)
treeed1990147dc757faf14461256123bd468769d469 /llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
parente0f3e616665d27514704778efefab9c3fad0e9c2 (diff)
downloadbcm5719-llvm-6e6c239e338c91e8d429882a2cb307fa67054ed4.tar.gz
bcm5719-llvm-6e6c239e338c91e8d429882a2cb307fa67054ed4.zip
ARM IAS: add support for the .pool directive
The .pool directive is an alias for the .ltorg directive used to create a literal pool. Simply treat .pool as if .ltorg was passed. llvm-svn: 197787
Diffstat (limited to 'llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp')
-rw-r--r--llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
index e67311f655d..d3b6c78e17c 100644
--- a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
+++ b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
@@ -7910,7 +7910,7 @@ bool ARMAsmParser::ParseDirective(AsmToken DirectiveID) {
return parseDirectiveInst(DirectiveID.getLoc(), 'n');
else if (IDVal == ".inst.w")
return parseDirectiveInst(DirectiveID.getLoc(), 'w');
- else if (IDVal == ".ltorg")
+ else if (IDVal == ".ltorg" || IDVal == ".pool")
return parseDirectiveLtorg(DirectiveID.getLoc());
return true;
}
@@ -8464,7 +8464,7 @@ bool ARMAsmParser::parseDirectiveInst(SMLoc Loc, char Suffix) {
}
/// parseDirectiveLtorg
-/// ::= .ltorg
+/// ::= .ltorg | .pool
bool ARMAsmParser::parseDirectiveLtorg(SMLoc L) {
MCStreamer &Streamer = getParser().getStreamer();
const MCSection *Section = Streamer.getCurrentSection().first;
OpenPOWER on IntegriCloud