mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-10 04:33:40 +00:00
Move default to top of switch
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141366 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
244455e6d6
commit
7761948761
@ -660,25 +660,23 @@ LLVMValueRef LLVMConstVector(LLVMValueRef *ScalarConstantVals, unsigned Size) {
|
|||||||
static LLVMOpcode map_to_llvmopcode(int opcode)
|
static LLVMOpcode map_to_llvmopcode(int opcode)
|
||||||
{
|
{
|
||||||
switch (opcode) {
|
switch (opcode) {
|
||||||
|
default:
|
||||||
|
assert(0 && "Unhandled Opcode.");
|
||||||
#define HANDLE_INST(num, opc, clas) case num: return LLVM##opc;
|
#define HANDLE_INST(num, opc, clas) case num: return LLVM##opc;
|
||||||
#include "llvm/Instruction.def"
|
#include "llvm/Instruction.def"
|
||||||
#undef HANDLE_INST
|
#undef HANDLE_INST
|
||||||
default:
|
|
||||||
assert(false && "Unhandled Opcode.");
|
|
||||||
}
|
}
|
||||||
return static_cast<LLVMOpcode>(0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int map_from_llvmopcode(LLVMOpcode code)
|
static int map_from_llvmopcode(LLVMOpcode code)
|
||||||
{
|
{
|
||||||
switch (code) {
|
switch (code) {
|
||||||
|
default:
|
||||||
|
assert(0 && "Unhandled Opcode.");
|
||||||
#define HANDLE_INST(num, opc, clas) case LLVM##opc: return num;
|
#define HANDLE_INST(num, opc, clas) case LLVM##opc: return num;
|
||||||
#include "llvm/Instruction.def"
|
#include "llvm/Instruction.def"
|
||||||
#undef HANDLE_INST
|
#undef HANDLE_INST
|
||||||
default:
|
|
||||||
assert(false && "Unhandled Opcode.");
|
|
||||||
}
|
}
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*--.. Constant expressions ................................................--*/
|
/*--.. Constant expressions ................................................--*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user