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;...@@ -7,8 +7,7 @@ pub const AmdGpuFeature = @import("feature/AmdGpuFeature.zig").AmdGpuFeature;
7pub const ArmFeature = @import("feature/ArmFeature.zig").ArmFeature;7pub const ArmFeature = @import("feature/ArmFeature.zig").ArmFeature;
8pub const AvrFeature = @import("feature/AvrFeature.zig").AvrFeature;8pub const AvrFeature = @import("feature/AvrFeature.zig").AvrFeature;
9pub const BpfFeature = @import("feature/BpfFeature.zig").BpfFeature;9pub const BpfFeature = @import("feature/BpfFeature.zig").BpfFeature;
10pub const HexagonFeature = @import("feature/HexagonFeature.zig").HexagonFeature;10pub const HexagonFeature = @import("feature/HexagonFeature.zig").HexagonFeature; pub const MipsFeature = @import("feature/MipsFeature.zig").MipsFeature;
11pub const MipsFeature = @import("feature/MipsFeature.zig").MipsFeature;
12pub const Msp430Feature = @import("feature/Msp430Feature.zig").Msp430Feature;11pub const Msp430Feature = @import("feature/Msp430Feature.zig").Msp430Feature;
13pub const NvptxFeature = @import("feature/NvptxFeature.zig").NvptxFeature;12pub const NvptxFeature = @import("feature/NvptxFeature.zig").NvptxFeature;
14pub const PowerPcFeature = @import("feature/PowerPcFeature.zig").PowerPcFeature;13pub const PowerPcFeature = @import("feature/PowerPcFeature.zig").PowerPcFeature;
...@@ -51,7 +50,7 @@ pub fn FeatureInfo(comptime EnumType: type) type {...@@ -51,7 +50,7 @@ pub fn FeatureInfo(comptime EnumType: type) type {
51 value: EnumType,50 value: EnumType,
52 name: []const u8,51 name: []const u8,
5352
54 dependencies: []const EnumType,53 subfeatures: []const EnumType,
5554
56 const Self = @This();55 const Self = @This();
5756
...@@ -60,16 +59,16 @@ pub fn FeatureInfo(comptime EnumType: type) type {...@@ -60,16 +59,16 @@ pub fn FeatureInfo(comptime EnumType: type) type {
60 .value = value,59 .value = value,
61 .name = name,60 .name = name,
6261
63 .dependencies = &[_]EnumType{},62 .subfeatures = &[_]EnumType{},
64 };63 };
65 }64 }
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 {
68 return Self {67 return Self {
69 .value = value,68 .value = value,
70 .name = name,69 .name = name,
7170
72 .dependencies = dependencies,71 .subfeatures = subfeatures,
73 };72 };
74 }73 }
75 };74 };