diff options
| author | Duncan Sands <baldrick@free.fr> | 2010-02-17 14:52:22 +0000 |
|---|---|---|
| committer | Duncan Sands <baldrick@free.fr> | 2010-02-17 14:52:22 +0000 |
| commit | fe562b65985a5fb6e24ed6d9ac8ff7bdc1f7c4f2 (patch) | |
| tree | ac4e5207102079fb77087121fadfb2254896c743 /llvm/lib | |
| parent | 624ee8da0dd8d47bd738c0cf9ed75ec2053cce33 (diff) | |
| download | bcm5719-llvm-fe562b65985a5fb6e24ed6d9ac8ff7bdc1f7c4f2.tar.gz bcm5719-llvm-fe562b65985a5fb6e24ed6d9ac8ff7bdc1f7c4f2.zip | |
Pacify gcc-4.5, which warns (correctly) that these switches have
cases that are not part of the enum.
llvm-svn: 96477
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/MC/MCAssembler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCAssembler.cpp b/llvm/lib/MC/MCAssembler.cpp index 653fbf285fb..26bd9eb7830 100644 --- a/llvm/lib/MC/MCAssembler.cpp +++ b/llvm/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; |

