summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2016-10-14 05:47:37 +0000
committerEric Christopher <echristo@gmail.com>2016-10-14 05:47:37 +0000
commit445c952bd0a3b35244476ba7ef9ff44b5483dfea (patch)
tree0fe105aeff7cb9bd6434e8ed59147df7183cadc3 /llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
parentb2437da9688c2aa30f6a0a6c13d08b4245d5fce7 (diff)
downloadbcm5719-llvm-445c952bd0a3b35244476ba7ef9ff44b5483dfea.tar.gz
bcm5719-llvm-445c952bd0a3b35244476ba7ef9ff44b5483dfea.zip
Tidy the calls to getCurrentSection().first -> getCurrentSectionOnly to help
readability a bit. llvm-svn: 284202
Diffstat (limited to 'llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp')
-rw-r--r--llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
index 8c9318b4061..90da11580e8 100644
--- a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
+++ b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
@@ -10106,7 +10106,7 @@ bool ARMAsmParser::parseDirectiveLtorg(SMLoc L) {
}
bool ARMAsmParser::parseDirectiveEven(SMLoc L) {
- const MCSection *Section = getStreamer().getCurrentSection().first;
+ const MCSection *Section = getStreamer().getCurrentSectionOnly();
if (getLexer().isNot(AsmToken::EndOfStatement)) {
TokError("unexpected token in directive");
@@ -10115,7 +10115,7 @@ bool ARMAsmParser::parseDirectiveEven(SMLoc L) {
if (!Section) {
getStreamer().InitSections(false);
- Section = getStreamer().getCurrentSection().first;
+ Section = getStreamer().getCurrentSectionOnly();
}
assert(Section && "must have section to emit alignment");
@@ -10369,7 +10369,7 @@ bool ARMAsmParser::parseDirectiveAlign(SMLoc L) {
return true;
// '.align' is target specifically handled to mean 2**2 byte alignment.
- const MCSection *Section = getStreamer().getCurrentSection().first;
+ const MCSection *Section = getStreamer().getCurrentSectionOnly();
assert(Section && "must have section to emit alignment");
if (Section->UseCodeAlign())
getStreamer().EmitCodeAlignment(4, 0);
OpenPOWER on IntegriCloud