mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-13 22:58:50 +00:00
Pacify gcc-4.5, which warns (correctly) that these switches have
cases that are not part of the enum. llvm-svn: 96477
This commit is contained in:
parent
018a0e9907
commit
e2bc75b41e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user