quick_entrypoints_mips.S revision 3a5c1ce3f11805a3382046f699c8fb1410a602b3
1/* 2 * Copyright (C) 2012 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17#include "disassembler.h" 18 19#include <iostream> 20 21#include "disassembler_arm.h" 22#include "logging.h" 23 24namespace art { 25 26Disassembler* Disassembler::Create(InstructionSet instruction_set) { 27 if (instruction_set == kArm || instruction_set == kThumb2) { 28 return new arm::DisassemblerArm(); 29 } else { 30 // TODO: give a better fatal message 31 UNIMPLEMENTED(FATAL); 32 return NULL; 33 } 34} 35 36} // namespace art 37