2
0
Эх сурвалжийг харах

[spirv] Stop emitting commit count (#1524)

The commit hash should suffice to pinpoint in Git history.
Lei Zhang 7 жил өмнө
parent
commit
1152cdeddd

+ 0 - 4
tools/clang/lib/SPIRV/Structure.cpp

@@ -379,10 +379,6 @@ void SPIRVModule::take(InstBuilder *builder) {
         std::string("dxc-commit-hash: ") + clang::getGitCommitHash();
     builder->opModuleProcessed(commitHash).x();
 
-    std::string commitCount = std::string("dxc-commit-count: ") +
-                              std::to_string(clang::getGitCommitCount());
-    builder->opModuleProcessed(commitCount).x();
-
     // Emit OpModuleProcessed to indicate the command line options that were
     // used to generate this module.
     if (!spirvOptions.clOptions.empty()) {

+ 0 - 1
tools/clang/test/CodeGenSPIRV/spirv.debug.commit.hlsl

@@ -1,6 +1,5 @@
 // Run: %dxc -T vs_6_0 -E main -fspv-target-env=vulkan1.1 -Zi
 
 // CHECK: OpModuleProcessed "dxc-commit-hash: {{\w+}}"
-// CHECK: OpModuleProcessed "dxc-commit-count: {{\d+}}"
 
 void main() { }