More fixes for vm-tests.
Failing to open a dex file is no longer a fatal error.
SetRegisterType in the verifier returns true/false for success/failure
to prevent Fail from being called twice.
Verifier checks that all catch blocks begin with a move-exception.
Gc maps can now support 65536 registers, with the size using some bits
that were usused in the format.
Change-Id: Idfa92c627efff8fd8360e933f54def397c953688
diff --git a/src/dex2oat.cc b/src/dex2oat.cc
index 23c7416..a27b76e 100644
--- a/src/dex2oat.cc
+++ b/src/dex2oat.cc
@@ -387,10 +387,10 @@
const char* dex_filename = dex_filenames[i];
const DexFile* dex_file = DexFile::Open(dex_filename, strip_location_prefix);
if (dex_file == NULL) {
- fprintf(stderr, "could not open .dex from file %s\n", dex_filename);
- exit(EXIT_FAILURE);
+ LOG(WARNING) << "could not open .dex from file " << dex_filename;
+ } else {
+ dex_files.push_back(dex_file);
}
- dex_files.push_back(dex_file);
}
}