No more "-0", "-1" files. gtest-0 or boot-0 are OK, not "-0"
Change-Id: I3b00d1511cf03e4bf54b222971f69f2f13f9ab04
diff --git a/src/common_test.h b/src/common_test.h
index 7087c70..dfee9b9 100644
--- a/src/common_test.h
+++ b/src/common_test.h
@@ -238,7 +238,7 @@
#if !defined(ART_USE_LLVM_COMPILER)
oat_method.LinkMethodPointers(method);
#else
- LLVMLinkLoadMethod("-0", method);
+ LLVMLinkLoadMethod("gtest-0", method);
#endif
} else {
MakeExecutable(runtime_->GetAbstractMethodErrorStubArray());
@@ -351,6 +351,9 @@
}
class_linker_->FixupDexCaches(runtime_->GetResolutionMethod());
compiler_.reset(new Compiler(instruction_set, false, 2, false, NULL));
+#if defined(ART_USE_LLVM_COMPILER)
+ compiler_->GetCompilerLLVM()->SetElfFileName("gtest");
+#endif
Heap::VerifyHeap(); // Check for heap corruption before the test
}