File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
clang/tools/clang-offload-bundler Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,8 @@ static cl::opt<std::string>
71
71
" Current supported types are:\n "
72
72
" i - cpp-output\n "
73
73
" ii - c++-cpp-output\n "
74
+ " cui - cuda/hip-output\n "
75
+ " d - dependency\n "
74
76
" ll - llvm\n "
75
77
" bc - llvm-bc\n "
76
78
" s - assembler\n "
@@ -628,6 +630,12 @@ static FileHandler *CreateFileHandler(MemoryBuffer &FirstInput) {
628
630
return new TextFileHandler (/* Comment=*/ " //" );
629
631
if (FilesType == " ii" )
630
632
return new TextFileHandler (/* Comment=*/ " //" );
633
+ if (FilesType == " cui" )
634
+ return new TextFileHandler (/* Comment=*/ " //" );
635
+ // TODO: `.d` should be eventually removed once `-M` and its variants are
636
+ // handled properly in offload compilation.
637
+ if (FilesType == " d" )
638
+ return new TextFileHandler (/* Comment=*/ " #" );
631
639
if (FilesType == " ll" )
632
640
return new TextFileHandler (/* Comment=*/ " ;" );
633
641
if (FilesType == " bc" )
You can’t perform that action at this time.
0 commit comments