[analyzer] SATestBuild.py: Use driver for analyzing single-file tests.
Don't bother coming up with a -cc1 run-line ourselves.
This, in particular, gets rid of a macOS-specific code path.
llvm-svn: 362009
diff --git a/clang/utils/analyzer/SATestUtils.py b/clang/utils/analyzer/SATestUtils.py
index 2320652..0ed4a4b 100644
--- a/clang/utils/analyzer/SATestUtils.py
+++ b/clang/utils/analyzer/SATestUtils.py
@@ -1,5 +1,5 @@
import os
-from subprocess import check_output, check_call
+from subprocess import check_call
import sys
@@ -47,18 +47,6 @@
return Ext in (".i", ".ii", ".c", ".cpp", ".m", "")
-def getSDKPath(SDKName):
- """
- Get the path to the SDK for the given SDK name. Returns None if
- the path cannot be determined.
- """
- if which("xcrun") is None:
- return None
-
- Cmd = "xcrun --sdk " + SDKName + " --show-sdk-path"
- return check_output(Cmd, shell=True).rstrip()
-
-
def runScript(ScriptPath, PBuildLogFile, Cwd, Stdout=sys.stdout,
Stderr=sys.stderr):
"""