From be50f9ae077b9d5fb4f12f693ba36cc69e9d4073 Mon Sep 17 00:00:00 2001 From: David Srbecky Date: Wed, 5 Dec 2018 10:48:42 +0000 Subject: 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 --- compiler/optimizing/optimizing_compiler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/optimizing/optimizing_compiler.cc') diff --git a/compiler/optimizing/optimizing_compiler.cc b/compiler/optimizing/optimizing_compiler.cc index 1d3fcf3002..641368b87a 100644 --- a/compiler/optimizing/optimizing_compiler.cc +++ b/compiler/optimizing/optimizing_compiler.cc @@ -1469,7 +1469,7 @@ void OptimizingCompiler::GenerateJitDebugInfo( compiler_options.GetInstructionSet(), compiler_options.GetInstructionSetFeatures(), mini_debug_info, - ArrayRef(&info, 1)); + info); MutexLock mu(Thread::Current(), *Locks::native_debug_interface_lock_); AddNativeDebugInfoForJit(reinterpret_cast(info.code_address), elf_file); -- cgit v1.2.3-59-g8ed1b