tra added inline comments.
================ Comment at: lib/CodeGen/CGCUDANV.cpp:364-377 + llvm::Constant *NVModuleIDConstant; + SmallString<64> NVModuleID; + if (RelocatableDeviceCode) { + // Generate a unique module ID. + llvm::raw_svector_ostream OS(NVModuleID); + OS << "__nv_" << llvm::format("%x", FatbinWrapper->getGUID()); + NVModuleIDConstant = ---------------- This can all be folded into the 'else' branch of the 'if' below. https://reviews.llvm.org/D42922 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits