Implement GetCodeSize for LLVM build.

Change-Id: I8e271eb809c81615cc4605564cda5dc55251ea01
diff --git a/src/compiler_llvm/elf_loader.cc b/src/compiler_llvm/elf_loader.cc
index 8f8eff9..07072df 100644
--- a/src/compiler_llvm/elf_loader.cc
+++ b/src/compiler_llvm/elf_loader.cc
@@ -99,6 +99,14 @@
 }
 
 
+size_t ElfLoader::GetCodeSize(uint16_t elf_idx, uint16_t elf_func_idx) const {
+  CHECK_LT(elf_idx, executables_.size());
+  CHECK(executables_[elf_idx] != NULL);
+  return rsloaderGetSymbolSize(executables_[elf_idx],
+                               ElfFuncName(elf_func_idx).c_str());
+}
+
+
 const void* ElfLoader::GetAddr(size_t elf_idx, const char* sym_name) const {
   CHECK_LT(elf_idx, executables_.size());
   CHECK(executables_[elf_idx] != NULL);
diff --git a/src/compiler_llvm/elf_loader.h b/src/compiler_llvm/elf_loader.h
index ea98f61..263a9fa 100644
--- a/src/compiler_llvm/elf_loader.h
+++ b/src/compiler_llvm/elf_loader.h
@@ -43,6 +43,8 @@
   const Method::InvokeStub* GetMethodInvokeStubAddr(uint16_t elf_idx,
                                                     uint16_t elf_func_idx) const;
 
+  size_t GetCodeSize(uint16_t elf_idx, uint16_t elf_func_idx) const;
+
  private:
   const void* GetAddr(size_t elf_idx, const char* sym_name) const;