summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2014-03-07 18:49:54 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2014-03-07 18:49:54 +0000
commitf5955c7dacd95d503c8287b04f28d7a7b6059cbb (patch)
treedbbf95ea3e2decdcb79f721408b53be99712fc5d /lib
parent5ba79a995271a05a8df3a4d68d1d9ee19fbe6351 (diff)
downloadllvm-f5955c7dacd95d503c8287b04f28d7a7b6059cbb.tar.gz
llvm-f5955c7dacd95d503c8287b04f28d7a7b6059cbb.tar.bz2
llvm-f5955c7dacd95d503c8287b04f28d7a7b6059cbb.tar.xz
MC: Use MachO::SectionType for MCSectionMachO::getType's return type
This is a straightfoward replacement, it makes debugging a little easier. This has no functional impact. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203264 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/MC/MCParser/DarwinAsmParser.cpp2
-rw-r--r--lib/MC/MCSectionMachO.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/MC/MCParser/DarwinAsmParser.cpp b/lib/MC/MCParser/DarwinAsmParser.cpp
index d19d2ef1e1..10fca7043e 100644
--- a/lib/MC/MCParser/DarwinAsmParser.cpp
+++ b/lib/MC/MCParser/DarwinAsmParser.cpp
@@ -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)
diff --git a/lib/MC/MCSectionMachO.cpp b/lib/MC/MCSectionMachO.cpp
index b8e5142299..29829463c1 100644
--- a/lib/MC/MCSectionMachO.cpp
+++ b/lib/MC/MCSectionMachO.cpp
@@ -102,7 +102,7 @@ void MCSectionMachO::PrintSwitchToSection(const MCAsmInfo &MAI,
return;
}
- unsigned SectionType = getType();
+ MachO::SectionType SectionType = getType();
assert(SectionType <= MachO::LAST_KNOWN_SECTION_TYPE &&
"Invalid SectionType specified!");