Quick Compiler: static, extern and inline cleanup
More declarations cleanup. Some dead code removal. No logic changes.
Change-Id: Ife3d0426082f4eeae7c0010ceb92d7dbdc823c71
diff --git a/src/compiler/frontend.cc b/src/compiler/frontend.cc
index 7fb8011..5a17b02 100644
--- a/src/compiler/frontend.cc
+++ b/src/compiler/frontend.cc
@@ -98,7 +98,7 @@
//(1 << kDebugVerifyBitcode) |
0;
-static inline bool ContentIsInsn(const uint16_t* codePtr) {
+static bool ContentIsInsn(const uint16_t* codePtr) {
uint16_t instr = *codePtr;
Instruction::Code opcode = static_cast<Instruction::Code>(instr & 0xff);
@@ -112,8 +112,8 @@
/*
* Parse an instruction, return the length of the instruction
*/
-static inline int ParseInsn(CompilationUnit* cUnit, const uint16_t* codePtr,
- DecodedInstruction* decoded_instruction, bool printMe)
+static int ParseInsn(CompilationUnit* cUnit, const uint16_t* codePtr,
+ DecodedInstruction* decoded_instruction, bool printMe)
{
// Don't parse instruction data
if (!ContentIsInsn(codePtr)) {
@@ -134,17 +134,6 @@
#define UNKNOWN_TARGET 0xffffffff
-static inline bool IsGoto(MIR* insn) {
- switch (insn->dalvikInsn.opcode) {
- case Instruction::GOTO:
- case Instruction::GOTO_16:
- case Instruction::GOTO_32:
- return true;
- default:
- return false;
- }
-}
-
/* Split an existing block from the specified code offset into two */
static BasicBlock *SplitBlock(CompilationUnit* cUnit, unsigned int codeOffset,
BasicBlock* origBlock, BasicBlock** immedPredBlockP)