Switch to use libbcc and single copy of LLVM.

Don't check this in until libbcc's 6841435 and API refactoring CLs are checked in.

Change-Id: Ie49e1e9c2dc11bd92240d9153b60edf04296869c
diff --git a/build/Android.libart-compiler-llvm.mk b/build/Android.libart-compiler-llvm.mk
index 9ec356a..6e178d6 100644
--- a/build/Android.libart-compiler-llvm.mk
+++ b/build/Android.libart-compiler-llvm.mk
@@ -75,65 +75,9 @@
 
   LOCAL_C_INCLUDES += $(ART_C_INCLUDES)
 
-  libart_compiler_llvm_arm_STATIC_LIBRARIES := \
-    libLLVMARMInfo \
-    libLLVMARMDisassembler \
-    libLLVMARMAsmParser \
-    libLLVMARMAsmPrinter \
-    libLLVMARMCodeGen \
-    libLLVMARMDesc
-
-  libart_compiler_llvm_mips_STATIC_LIBRARIES := \
-    libLLVMMipsInfo \
-    libLLVMMipsDisassembler \
-    libLLVMMipsCodeGen \
-    libLLVMMipsDesc \
-    libLLVMMipsAsmParser \
-    libLLVMMipsAsmPrinter
-
-  libart_compiler_llvm_x86_STATIC_LIBRARIES := \
-    libLLVMX86Info \
-    libLLVMX86AsmParser \
-    libLLVMX86CodeGen \
-    libLLVMX86Disassembler \
-    libLLVMX86Desc \
-    libLLVMX86AsmPrinter \
-    libLLVMX86Utils
-
-  ifeq ($$(art_target_or_host),target)
-    LOCAL_STATIC_LIBRARIES += \
-      $$(libart_compiler_llvm_$(TARGET_ARCH)_STATIC_LIBRARIES)
-  else
-    LOCAL_STATIC_LIBRARIES += \
-      $$(libart_compiler_llvm_arm_STATIC_LIBRARIES) \
-      $$(libart_compiler_llvm_mips_STATIC_LIBRARIES) \
-      $$(libart_compiler_llvm_x86_STATIC_LIBRARIES)
-  endif
-
-  LOCAL_STATIC_LIBRARIES += \
-    libLLVMObject \
-    libLLVMLinker \
-    libLLVMipo \
-    libLLVMBitWriter \
-    libLLVMBitReader \
-    libLLVMAsmPrinter \
-    libLLVMSelectionDAG \
-    libLLVMCodeGen \
-    libLLVMVectorize \
-    libLLVMScalarOpts \
-    libLLVMInstCombine \
-    libLLVMInstrumentation \
-    libLLVMTransformUtils \
-    libLLVMipa \
-    libLLVMAnalysis \
-    libLLVMTarget \
-    libLLVMMC \
-    libLLVMMCParser \
-    libLLVMCore \
-    libLLVMSupport
-
   LOCAL_SHARED_LIBRARIES := liblog libnativehelper
   LOCAL_SHARED_LIBRARIES += libcorkscrew # native stack trace support
+  LOCAL_SHARED_LIBRARIES += libbcc
   ifeq ($$(art_target_or_host),target)
     LOCAL_SHARED_LIBRARIES += libcutils libstlport libz libdl
     LOCAL_SHARED_LIBRARIES += libdynamic_annotations # tsan support
diff --git a/build/Android.libart-compiler.mk b/build/Android.libart-compiler.mk
index 3f3c23d..ba2fb33 100644
--- a/build/Android.libart-compiler.mk
+++ b/build/Android.libart-compiler.mk
@@ -116,6 +116,9 @@
     endif
     LOCAL_SHARED_LIBRARIES += libart
   endif
+  ifeq ($(ART_USE_QUICK_COMPILER), true)
+    LOCAL_SHARED_LIBRARIES += libbcc
+  endif
 
   # TODO: temporary hack for testing.
   ifeq ($$(libart_compiler_arch),mips)
@@ -128,14 +131,6 @@
 
   LOCAL_C_INCLUDES += $(ART_C_INCLUDES)
 
-  ifeq ($(ART_USE_QUICK_COMPILER), true)
-    LOCAL_STATIC_LIBRARIES += \
-      libLLVMBitWriter \
-      libLLVMBitReader \
-      libLLVMCore \
-      libLLVMSupport
-  endif
-
   ifeq ($$(art_target_or_host),target)
     LOCAL_SHARED_LIBRARIES += libstlport
   else # host