authorgravatar for lgustaf1@binghamton.eduLayne Gustafson <lgustaf1@binghamton.edu> 2019-12-16 16:51:26-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-01-19 20:53:18-05:00
log8f191e0166ada745a677e8021dbb54598bcd94ea
treed8d44f09fba88741548081d30470d9653d3cff57
parent0f46c12f789d10915e04c8aec26f0330536539c7
signature Commit is signed but in an unrecognized format.

Update term feature deps -> subfeatures


1 files changed, 5 insertions(+), 6 deletions(-)

lib/std/target/feature.zig+5-6
......@@ -7,8 +7,7 @@ pub const AmdGpuFeature = @import("feature/AmdGpuFeature.zig").AmdGpuFeature;
77pub const ArmFeature = @import("feature/ArmFeature.zig").ArmFeature;
88pub const AvrFeature = @import("feature/AvrFeature.zig").AvrFeature;
99pub const BpfFeature = @import("feature/BpfFeature.zig").BpfFeature;
10pub const HexagonFeature = @import("feature/HexagonFeature.zig").HexagonFeature;
11pub const MipsFeature = @import("feature/MipsFeature.zig").MipsFeature;
10pub const HexagonFeature = @import("feature/HexagonFeature.zig").HexagonFeature; pub const MipsFeature = @import("feature/MipsFeature.zig").MipsFeature;
1211pub const Msp430Feature = @import("feature/Msp430Feature.zig").Msp430Feature;
1312pub const NvptxFeature = @import("feature/NvptxFeature.zig").NvptxFeature;
1413pub const PowerPcFeature = @import("feature/PowerPcFeature.zig").PowerPcFeature;
......@@ -51,7 +50,7 @@ pub fn FeatureInfo(comptime EnumType: type) type {
5150 value: EnumType,
5251 name: []const u8,
5352
54 dependencies: []const EnumType,
53 subfeatures: []const EnumType,
5554
5655 const Self = @This();
5756
......@@ -60,16 +59,16 @@ pub fn FeatureInfo(comptime EnumType: type) type {
6059 .value = value,
6160 .name = name,
6261
63 .dependencies = &[_]EnumType{},
62 .subfeatures = &[_]EnumType{},
6463 };
6564 }
6665
67 fn createWithDeps(value: EnumType, name: []const u8, dependencies: []const EnumType) Self {
66 fn createWithSubfeatures(value: EnumType, name: []const u8, subfeatures: []const EnumType) Self {
6867 return Self {
6968 .value = value,
7069 .name = name,
7170
72 .dependencies = dependencies,
71 .subfeatures = subfeatures,
7372 };
7473 }
7574 };