summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCParser/DarwinAsmParser.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/MC/MCParser/DarwinAsmParser.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/MC/MCParser/DarwinAsmParser.cpp')
-rw-r--r--llvm/lib/MC/MCParser/DarwinAsmParser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCParser/DarwinAsmParser.cpp b/llvm/lib/MC/MCParser/DarwinAsmParser.cpp
index 063b4a6f895..4eee39cf872 100644
--- a/llvm/lib/MC/MCParser/DarwinAsmParser.cpp
+++ b/llvm/lib/MC/MCParser/DarwinAsmParser.cpp
@@ -468,8 +468,8 @@ bool DarwinAsmParser::parseDirectiveDesc(StringRef, SMLoc) {
/// parseDirectiveIndirectSymbol
/// ::= .indirect_symbol identifier
bool DarwinAsmParser::parseDirectiveIndirectSymbol(StringRef, SMLoc Loc) {
- const MCSectionMachO *Current = static_cast<const MCSectionMachO*>(
- getStreamer().getCurrentSection().first);
+ const MCSectionMachO *Current = static_cast<const MCSectionMachO *>(
+ getStreamer().getCurrentSectionOnly());
MachO::SectionType SectionType = Current->getType();
if (SectionType != MachO::S_NON_LAZY_SYMBOL_POINTERS &&
SectionType != MachO::S_LAZY_SYMBOL_POINTERS &&
OpenPOWER on IntegriCloud