summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.h
diff options
context:
space:
mode:
authorRaul Tambre <raul@tambre.ee>2021-11-06 11:35:04 (GMT)
committerRaul Tambre <raul@tambre.ee>2021-11-07 19:28:08 (GMT)
commitcf7e68087d005051ec07cb21c2aed2963a3d5c4e (patch)
tree67869490366e8f5b2a448100581e494f3f5d07e3 /Source/cmLocalGenerator.h
parent5b0693411ef53349f192140b855ec1cdc148f3b9 (diff)
downloadCMake-cf7e68087d005051ec07cb21c2aed2963a3d5c4e.zip
CMake-cf7e68087d005051ec07cb21c2aed2963a3d5c4e.tar.gz
CMake-cf7e68087d005051ec07cb21c2aed2963a3d5c4e.tar.bz2
CUDA: Avoid unnecessary allocation and GetLinkLanguage()
There's no reason to allocate the cmNinjaLinkLineDeviceComputer on the heap. We can also assume the link language as CUDA in cmLocalGenerator::GetDeviceLinkFlags().
Diffstat (limited to 'Source/cmLocalGenerator.h')
-rw-r--r--Source/cmLocalGenerator.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmLocalGenerator.h b/Source/cmLocalGenerator.h
index 3614c84..b86c8e8 100644
--- a/Source/cmLocalGenerator.h
+++ b/Source/cmLocalGenerator.h
@@ -496,7 +496,7 @@ public:
/** Fill out these strings for the given target. Libraries to link,
* flags, and linkflags. */
- void GetDeviceLinkFlags(cmLinkLineComputer* linkLineComputer,
+ void GetDeviceLinkFlags(cmLinkLineComputer& linkLineComputer,
const std::string& config, std::string& linkLibs,
std::string& linkFlags, std::string& frameworkPath,
std::string& linkPath, cmGeneratorTarget* target);