| 275 | } |
| 276 | |
| 277 | bool RTCCompileProgram::GetBitcode(char* bitcode) { |
| 278 | if (!fgpu_rdc_ || LLVMBitcode_.size() <= 0) { |
| 279 | return false; |
| 280 | } |
| 281 | |
| 282 | std::copy(LLVMBitcode_.begin(), LLVMBitcode_.end(), bitcode); |
| 283 | return true; |
| 284 | } |
| 285 | |
| 286 | bool RTCCompileProgram::GetBitcodeSize(size_t* bitcode_size) { |
| 287 | if (!fgpu_rdc_ || LLVMBitcode_.size() <= 0) { |
no test coverage detected