Make ICCE logic common, refactor throws.
There were 2 sets of ICCE logic in ClassLinker::ResolveMethod and
Method::CheckIncompatibleClassChange, merged into just 1 piece of logic
in Method::CheckIncompatibleClassChange.
Move Throw... routines into own file and make adding the dex location to
the detail message more thorough.
Change-Id: I953dbfa3fed3767f35799b2f82b16637c437dbbe
diff --git a/build/Android.common.mk b/build/Android.common.mk
index 7dbe04c..d02b998 100644
--- a/build/Android.common.mk
+++ b/build/Android.common.mk
@@ -146,6 +146,7 @@
src/card_table.cc \
src/check_jni.cc \
src/class_linker.cc \
+ src/common_throws.cc \
src/compiled_method.cc \
src/compiler.cc \
src/debugger.cc \