Quick compiler: complete switch support
With this CL, all Dex opcodes are handled. We pass 79 run-tests,
and fail 12. Temporarily going single-threaded for the Quick
compiler (llvm's ir-builder dies otherwise - will figure out what I
need to do for multi-threaded operation in a later CL).
Change-Id: I389e94d9a831096d4e7493460729933fb45e649e
diff --git a/src/dex2oat.cc b/src/dex2oat.cc
index f2c73e9..4587b30 100644
--- a/src/dex2oat.cc
+++ b/src/dex2oat.cc
@@ -473,7 +473,11 @@
uintptr_t image_base = 0;
UniquePtr<std::string> host_prefix;
std::vector<const char*> runtime_args;
+#if defined(ART_USE_QUICK_COMPILER)
+ int thread_count = 1;
+#else
int thread_count = sysconf(_SC_NPROCESSORS_CONF);
+#endif
bool support_debugging = false;
#if defined(__arm__)
InstructionSet instruction_set = kThumb2;