This is a follow up of https://reviews.llvm.org/D68578
where device stub name is changed for Itanium
mangling but not Microsoft mangling.
Details
Details
- Reviewers
tra rjmccall - Commits
- rG38211bbab1d9: [HIP] Fix device stub name for Windows
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM in general.
clang/lib/AST/MicrosoftMangle.cpp | ||
---|---|---|
975–976 | Can we just use (llvm::Twine("__device_stub__") + II->getName()).str()? Or std::string("__device__stub") + II->getName().str() ? std::string should be convertible to StringRef and using a temporary variable here is fine. |
clang/lib/AST/MicrosoftMangle.cpp | ||
---|---|---|
975–976 | I will use (llvm::Twine("device_stub") + II->getName()).str() |
Can we just use (llvm::Twine("__device_stub__") + II->getName()).str()? Or std::string("__device__stub") + II->getName().str() ?
std::string should be convertible to StringRef and using a temporary variable here is fine.