diff --git a/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp b/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp --- a/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp +++ b/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp @@ -71,6 +71,8 @@ "Current supported types are:\n" " i - cpp-output\n" " ii - c++-cpp-output\n" + " cui - cuda/hip-output\n" + " d - dependency\n" " ll - llvm\n" " bc - llvm-bc\n" " s - assembler\n" @@ -628,6 +630,10 @@ return new TextFileHandler(/*Comment=*/"//"); if (FilesType == "ii") return new TextFileHandler(/*Comment=*/"//"); + if (FilesType == "cui") + return new TextFileHandler(/*Comment=*/"//"); + if (FilesType == "d") + return new TextFileHandler(/*Comment=*/"#"); if (FilesType == "ll") return new TextFileHandler(/*Comment=*/";"); if (FilesType == "bc")