Mark some functions as readonly for optimization.
Also, code cleanup, and fix comment.
Change-Id: Ia25e9bc6f02b5838b1cd18efc32d2084e6db0953
diff --git a/src/compiler_llvm/generated/art_module.cc b/src/compiler_llvm/generated/art_module.cc
index b3963ef..a337e40 100644
--- a/src/compiler_llvm/generated/art_module.cc
+++ b/src/compiler_llvm/generated/art_module.cc
@@ -359,6 +359,14 @@
func_art_get_current_thread_from_code->setCallingConv(CallingConv::C);
}
AttrListPtr func_art_get_current_thread_from_code_PAL;
+{
+ SmallVector<AttributeWithIndex, 4> Attrs;
+ AttributeWithIndex PAWI;
+ PAWI.Index = 4294967295U; PAWI.Attrs = Attribute::None | Attribute::ReadOnly;
+ Attrs.push_back(PAWI);
+ func_art_get_current_thread_from_code_PAL = AttrListPtr::get(Attrs.begin(), Attrs.end());
+
+}
func_art_get_current_thread_from_code->setAttributes(func_art_get_current_thread_from_code_PAL);
Function* func_art_set_current_thread_from_code = mod->getFunction("art_set_current_thread_from_code");
@@ -436,6 +444,14 @@
func_art_is_exception_pending_from_code->setCallingConv(CallingConv::C);
}
AttrListPtr func_art_is_exception_pending_from_code_PAL;
+{
+ SmallVector<AttributeWithIndex, 4> Attrs;
+ AttributeWithIndex PAWI;
+ PAWI.Index = 4294967295U; PAWI.Attrs = Attribute::None | Attribute::ReadOnly;
+ Attrs.push_back(PAWI);
+ func_art_is_exception_pending_from_code_PAL = AttrListPtr::get(Attrs.begin(), Attrs.end());
+
+}
func_art_is_exception_pending_from_code->setAttributes(func_art_is_exception_pending_from_code_PAL);
Function* func_art_throw_div_zero_from_code = mod->getFunction("art_throw_div_zero_from_code");