Pacify gcc-4.5, which warns (correctly) that these switches have
authorDuncan Sands <baldrick@free.fr>
Wed, 17 Feb 2010 14:52:22 +0000 (14:52 +0000)
committerDuncan Sands <baldrick@free.fr>
Wed, 17 Feb 2010 14:52:22 +0000 (14:52 +0000)
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

lib/MC/MCAssembler.cpp

index 653fbf285fbe45479aa8b9aec4c724958dd1d72b..26bd9eb7830af5f42e27fde546cbbff6f523e302 100644 (file)
@@ -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;