llvm: migrate to use resource.