[clang] 0f76d9f - clang-installapi: remove setInstalledDir

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 28 15:17:35 PST 2024


Author: Fangrui Song
Date: 2024-02-28T15:17:31-08:00
New Revision: 0f76d9fb5fbfea92da7647af70d78165c71c0700

URL: https://github.com/llvm/llvm-project/commit/0f76d9fb5fbfea92da7647af70d78165c71c0700
DIFF: https://github.com/llvm/llvm-project/commit/0f76d9fb5fbfea92da7647af70d78165c71c0700.diff

LOG: clang-installapi: remove setInstalledDir

Added: 
    

Modified: 
    clang/tools/clang-installapi/ClangInstallAPI.cpp

Removed: 
    


################################################################################
diff  --git a/clang/tools/clang-installapi/ClangInstallAPI.cpp b/clang/tools/clang-installapi/ClangInstallAPI.cpp
index 43c9fca0a82eec..ff031e0236d0bc 100644
--- a/clang/tools/clang-installapi/ClangInstallAPI.cpp
+++ b/clang/tools/clang-installapi/ClangInstallAPI.cpp
@@ -96,7 +96,6 @@ static bool run(ArrayRef<const char *> Args, const char *ProgName) {
   auto DriverArgs = llvm::ArrayRef(Args).slice(1);
   clang::driver::Driver Driver(ProgName, llvm::sys::getDefaultTargetTriple(),
                                *Diag, "clang installapi tool");
-  Driver.setInstalledDir(llvm::sys::path::parent_path(ProgName));
   auto TargetAndMode =
       clang::driver::ToolChain::getTargetAndModeFromProgramName(ProgName);
   Driver.setTargetAndMode(TargetAndMode);


        


More information about the cfe-commits mailing list