Adds the binary format goff and the operating system zos to the triple class. goff is selected as default binary format if zos is choosen as operating system. No further functionality is added.
Details
Diff Detail
Event Timeline
clang/lib/CodeGen/BackendUtil.cpp | ||
---|---|---|
258 | Minor nit: GOFF appears after XCOFF in most of the "unsorted" lists. | |
llvm/include/llvm/Support/TargetRegistry.h | ||
520 | The coding guidelines have been updated to clarify the formatting of report_fatal_error messages: | |
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | ||
4731 | Minor nit: GOFF appears after XCOFF in most of the "unsorted" lists. | |
4749 | Minor nit: GOFF appears after XCOFF in most of the "unsorted" lists. | |
llvm/lib/Support/Triple.cpp | ||
659 | Minor nit: Maintain alphabetical order for lists that are already sorted. | |
727 | Is it beneficial to express the check this way instead of with isOSzOS? |
@Kai, I'm afraid I won't be able to assist much in reviews of most z/OS related patches (due to lack of time and lack of expertise with various parts of z/OS), but please do copy me on anything related to source and execution character set encoding or conversions, handling of universal-character-names, and encoding of output files (preprocessor output, dependency output, etc...)
- Relative order is now consistently GOFF before XCOFF
- llvm_report_fatal() now follows guideline
- Updated formatting
llvm/include/llvm/Support/TargetRegistry.h | ||
---|---|---|
520 | Thanks! That was a good hint. |
- In Triple.cpp: Keep list of binary formats sorted
- In Triple.cpp: Use isOSzOS() for check
LGTM with minor nits.
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | ||
---|---|---|
4732 | Minor nit: break after a function that does not return appears elsewhere in this switch; please add a break here. | |
4750 | Minor nit: break after a function that does not return appears elsewhere in this switch; please add a break here. | |
llvm/lib/MC/MCObjectFileInfo.cpp | ||
908 | Minor nit: break after a function that does not return appears elsewhere in this switch; please add a break here. |
llvm/lib/Support/Triple.cpp | ||
---|---|---|
220 | Follow the local style by deleting the newline. |
I confirm that I have reviewed the Clang part of this change, which is entirely consistent with the status quo for XCOFF. I'm not seeing any outstanding comments, and I do not believe that the changes are controversial. I think this patch meets the "likely community consensus" requirements for being committed.
I'm not a regular Clang reviewer. But for what it is worth, the changes look correct, clear, and appropriate from my lens (though I disagree slightly with some of the lint recommendations in the cases where the recommendation deviates from the surrounding code style). It looks like the concerns Hubert raised have been addressed.
Minor nit: GOFF appears after XCOFF in most of the "unsorted" lists.