aboutsummaryrefslogtreecommitdiff
path: root/lib/MC/MCAssembler.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2010-02-17 14:52:22 +0000
committerDuncan Sands <baldrick@free.fr>2010-02-17 14:52:22 +0000
commit9a7795cbed47159566fd8f57b846fcf14ffb0272 (patch)
tree634f43e31cd8c690149b80e6763c6331a1c77760 /lib/MC/MCAssembler.cpp
parenta8572bbd39f50c17cbdce3a781b87a766f656881 (diff)
Pacify gcc-4.5, which warns (correctly) that these switches have
cases that are not part of the enum. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96477 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCAssembler.cpp')
-rw-r--r--lib/MC/MCAssembler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/MC/MCAssembler.cpp b/lib/MC/MCAssembler.cpp
index 653fbf285f..26bd9eb783 100644
--- a/lib/MC/MCAssembler.cpp
+++ b/lib/MC/MCAssembler.cpp
@@ -51,7 +51,7 @@ static bool isVirtualSection(const MCSection &Section) {
return (Type == MCSectionMachO::S_ZEROFILL);
}
-static unsigned getFixupKindLog2Size(MCFixupKind Kind) {
+static unsigned getFixupKindLog2Size(unsigned Kind) {
switch (Kind) {
default: llvm_unreachable("invalid fixup kind!");
case X86::reloc_pcrel_1byte:
@@ -64,7 +64,7 @@ static unsigned getFixupKindLog2Size(MCFixupKind Kind) {
}
}
-static bool isFixupKindPCRel(MCFixupKind Kind) {
+static bool isFixupKindPCRel(unsigned Kind) {
switch (Kind) {
default:
return false;