Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Triple] Add "swift" as a vendor. #8285

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion llvm/include/llvm/TargetParser/Triple.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ class Triple {
Mesa,
SUSE,
OpenEmbedded,
LastVendorType = OpenEmbedded
Swift,
LastVendorType = Swift
};
enum OSType {
UnknownOS,
Expand Down
2 changes: 2 additions & 0 deletions llvm/lib/TargetParser/Triple.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ StringRef Triple::getVendorTypeName(VendorType Kind) {
case PC: return "pc";
case SCEI: return "scei";
case SUSE: return "suse";
case Swift: return "swift";
}

llvm_unreachable("Invalid VendorType!");
Expand Down Expand Up @@ -601,6 +602,7 @@ static Triple::VendorType parseVendor(StringRef VendorName) {
.Case("amd", Triple::AMD)
.Case("mesa", Triple::Mesa)
.Case("suse", Triple::SUSE)
.Case("swift", Triple::Swift)
.Case("oe", Triple::OpenEmbedded)
.Default(Triple::UnknownVendor);
}
Expand Down