MC: Use MachO::SectionType for MCSectionMachO::getType's return type
[oota-llvm.git] / lib / MC / MCParser / DarwinAsmParser.cpp
index d19d2ef1e11f1569777e34de7e93cf59e7bd08d2..10fca7043efccb8cc319563bc93b0128846d6d1c 100644 (file)
@@ -428,7 +428,7 @@ bool DarwinAsmParser::ParseDirectiveDesc(StringRef, SMLoc) {
 bool DarwinAsmParser::ParseDirectiveIndirectSymbol(StringRef, SMLoc Loc) {
   const MCSectionMachO *Current = static_cast<const MCSectionMachO*>(
                                        getStreamer().getCurrentSection().first);
-  unsigned SectionType = Current->getType();
+  MachO::SectionType SectionType = Current->getType();
   if (SectionType != MachO::S_NON_LAZY_SYMBOL_POINTERS &&
       SectionType != MachO::S_LAZY_SYMBOL_POINTERS &&
       SectionType != MachO::S_SYMBOL_STUBS)