search for: runtime_val

Displaying 1 result from an estimated 1 matches for "runtime_val".

2013 May 28
2
[LLVMdev] Global variables on LLVM JIT on ARM (Android)
...on of LLVM that comes in the external project of AOSP (LLVM 2.8, I believe?) I have the following LLVM assembly: target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:32:64-v128:32:128-a0:0:32-n32-S32" target triple = "armv7--" @runtime_val = global i32 7, align 4 define i32 @method() { entry: %ret = load i32* @runtime_val, align 4 ret i32 %ret } When I use getPointerToFunction() after loading this assembly with ParseAssemblyFile(), I get the following stderr output, and then a segfault: UNREACHABLE executed! Stack dump: 0. Running...