We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fcd2ca commit 7ff0d28Copy full SHA for 7ff0d28
llvm/lib/TargetParser/Triple.cpp
@@ -1018,10 +1018,7 @@ static Triple::ObjectFormatType getDefaultFormat(const Triple &T) {
1018
///
1019
/// This stores the string representation and parses the various pieces into
1020
/// enum members.
1021
-Triple::Triple(const Twine &Str)
1022
- : Data(Str.str()), Arch(UnknownArch), SubArch(NoSubArch),
1023
- Vendor(UnknownVendor), OS(UnknownOS), Environment(UnknownEnvironment),
1024
- ObjectFormat(UnknownObjectFormat) {
+Triple::Triple(const Twine &Str) : Data(Str.str()) {
1025
// Do minimal parsing by hand here.
1026
SmallVector<StringRef, 4> Components;
1027
StringRef(Data).split(Components, '-', /*MaxSplit*/ 3);
0 commit comments