r263766 - Remove usage of LLVM_PREFIX.

Chaoren Lin via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 17 17:05:37 PDT 2016


Author: chaoren
Date: Thu Mar 17 19:05:37 2016
New Revision: 263766

URL: http://llvm.org/viewvc/llvm-project?rev=263766&view=rev
Log:
Remove usage of LLVM_PREFIX.

Summary: LLVM_PREFIX could be undefined if CMAKE_INSTALL_PREFIX were set to empty.

Reviewers: kparzysz, bkramer, chandlerc

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D17784

Modified:
    cfe/trunk/lib/Driver/ToolChains.cpp

Modified: cfe/trunk/lib/Driver/ToolChains.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains.cpp?rev=263766&r1=263765&r2=263766&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains.cpp Thu Mar 17 19:05:37 2016
@@ -2581,10 +2581,6 @@ std::string HexagonToolChain::getHexagon
   if (getVFS().exists(InstallRelDir = InstalledDir + "/../target"))
     return InstallRelDir;
 
-  std::string PrefixRelDir = std::string(LLVM_PREFIX) + "/target";
-  if (getVFS().exists(PrefixRelDir))
-    return PrefixRelDir;
-
   return InstallRelDir;
 }
 




More information about the cfe-commits mailing list