Simplify MakeElfFileForJIT
We only ever pass single method info to the method and
I don't plan to use the method for anything more complex.
The JIT-related methods also know the relevant ElfTypes
at compile time, so some of the helpers are not needed.
Test: ./art/test.py -b -r -t 137
Change-Id: Ie7815a6427ac05be15a79adeb05dccc9150441d2
diff --git a/compiler/optimizing/optimizing_compiler.cc b/compiler/optimizing/optimizing_compiler.cc
index 1d3fcf3..641368b 100644
--- a/compiler/optimizing/optimizing_compiler.cc
+++ b/compiler/optimizing/optimizing_compiler.cc
@@ -1469,7 +1469,7 @@
compiler_options.GetInstructionSet(),
compiler_options.GetInstructionSetFeatures(),
mini_debug_info,
- ArrayRef<const debug::MethodDebugInfo>(&info, 1));
+ info);
MutexLock mu(Thread::Current(), *Locks::native_debug_interface_lock_);
AddNativeDebugInfoForJit(reinterpret_cast<const void*>(info.code_address), elf_file);