diff options
| author | 2014-03-02 18:17:45 +0000 | |
|---|---|---|
| committer | 2014-03-02 18:17:46 +0000 | |
| commit | 9fab32265f35c808b216210a8d5bebd931279041 (patch) | |
| tree | e095ee11d308f264b3dfb9f4c510f14fe6b1259c /compiler/llvm/compiler_llvm.cc | |
| parent | e4a74a6ac8d1486b1227504044a60002e69a9fec (diff) | |
| parent | 3d504075f7c1204d581923460754bf6d3714b13f (diff) | |
Merge "Make out arguments non-reference types."
Diffstat (limited to 'compiler/llvm/compiler_llvm.cc')
| -rw-r--r-- | compiler/llvm/compiler_llvm.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/compiler/llvm/compiler_llvm.cc b/compiler/llvm/compiler_llvm.cc index a5acd2a332..4ce714a183 100644 --- a/compiler/llvm/compiler_llvm.cc +++ b/compiler/llvm/compiler_llvm.cc @@ -175,16 +175,16 @@ CompileNativeMethod(DexCompilationUnit* dex_compilation_unit) { } // namespace llvm } // namespace art -inline static art::llvm::CompilerLLVM* ContextOf(art::CompilerDriver& driver) { +static art::llvm::CompilerLLVM* ContextOf(art::CompilerDriver& driver) { void *compiler_context = driver.GetCompilerContext(); CHECK(compiler_context != NULL); return reinterpret_cast<art::llvm::CompilerLLVM*>(compiler_context); } -inline static const art::llvm::CompilerLLVM* ContextOf(const art::CompilerDriver& driver) { +static art::llvm::CompilerLLVM* ContextOf(const art::CompilerDriver& driver) { void *compiler_context = driver.GetCompilerContext(); CHECK(compiler_context != NULL); - return reinterpret_cast<const art::llvm::CompilerLLVM*>(compiler_context); + return reinterpret_cast<art::llvm::CompilerLLVM*>(compiler_context); } extern "C" void ArtInitCompilerContext(art::CompilerDriver& driver) { @@ -233,7 +233,7 @@ extern "C" art::CompiledMethod* ArtLLVMJniCompileMethod(art::CompilerDriver& dri return result; } -extern "C" void compilerLLVMSetBitcodeFileName(art::CompilerDriver& driver, - std::string const& filename) { +extern "C" void compilerLLVMSetBitcodeFileName(const art::CompilerDriver& driver, + const std::string& filename) { ContextOf(driver)->SetBitcodeFileName(filename); } |