[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:10:47 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL263766: Remove usage of LLVM_PREFIX. (authored by chaoren).

Changed prior to commit:
  http://reviews.llvm.org/D17784?vs=50993&id=50994#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D17784

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

Index: cfe/trunk/lib/Driver/ToolChains.cpp
===================================================================
--- cfe/trunk/lib/Driver/ToolChains.cpp
+++ cfe/trunk/lib/Driver/ToolChains.cpp
@@ -2581,10 +2581,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.50994.patch
Type: text/x-patch
Size: 476 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160318/a054af80/attachment.bin>


More information about the cfe-commits mailing list