[PATCH] D17784: Check if LLVM_PREFIX is defined before using it.

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


chaoren updated this revision to Diff 50993.
chaoren added a comment.

Remove usage of LLVM_PREFIX altogether.


http://reviews.llvm.org/D17784

Files:
  lib/Driver/ToolChains.cpp

Index: lib/Driver/ToolChains.cpp
===================================================================
--- lib/Driver/ToolChains.cpp
+++ lib/Driver/ToolChains.cpp
@@ -2607,10 +2607,6 @@
   if (getVFS().exists(InstallRelDir = InstalledDir + "/../target"))
     return InstallRelDir;
 
-  std::string PrefixRelDir = std::string(LLVM_PREFIX) + "/target";
-  if (getVFS().exists(PrefixRelDir))
-    return PrefixRelDir;
-
   return InstallRelDir;
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17784.50993.patch
Type: text/x-patch
Size: 446 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160318/791d91eb/attachment.bin>


More information about the cfe-commits mailing list