[Lldb-commits] [lldb] [lldb] Remove python helper getCompilerBinary() (PR #100660)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Fri Jul 26 01:36:49 PDT 2024
================
@@ -266,16 +266,11 @@ def getCompiler():
return module.getCompiler()
-def getCompilerBinary():
- """Returns the compiler binary the test suite is running with."""
- return getCompiler().split()[0]
-
-
def getCompilerVersion():
"""Returns a string that represents the compiler version.
Supports: llvm, clang.
"""
- compiler = getCompilerBinary()
+ compiler = getCompiler()
version_output = subprocess.check_output([compiler, "--version"], errors="replace")
----------------
DavidSpickett wrote:
Might as well put `getCompiler()` directly in this line, no local variable needed.
https://github.com/llvm/llvm-project/pull/100660
More information about the lldb-commits
mailing list