[PATCH] D44987: Disable emitting static extern C aliases for amdgcn target for CUDA

John McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 28 12:00:51 PDT 2018


rjmccall added inline comments.


================
Comment at: lib/CodeGen/CodeGenModule.cpp:4684
+      (Context.getTargetInfo().getTriple().getArch() == llvm::Triple::amdgcn))
     return;
   for (auto &I : StaticExternCValues) {
----------------
Please add a target hook for this instead of building a list of targets that don't support it.


https://reviews.llvm.org/D44987





More information about the cfe-commits mailing list