Skip to content

Commit

Permalink
[spirv] Stop emitting commit count (#1524)
Browse files Browse the repository at this point in the history
The commit hash should suffice to pinpoint in Git history.
  • Loading branch information
antiagainst committed Sep 5, 2018
1 parent f45c576 commit 1152cde
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions tools/clang/lib/SPIRV/Structure.cpp
Expand Up @@ -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()) {
Expand Down
1 change: 0 additions & 1 deletion 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() { }

0 comments on commit 1152cde

Please sign in to comment.