[llvm-commits] CVS: llvm/lib/System/Unix/Path.cpp

Reid Spencer reid at x10sys.com
Thu Sep 16 09:36:20 PDT 2004



Changes in directory llvm/lib/System/Unix:

Path.cpp updated: 1.6 -> 1.7
---
Log message:

Allow "bc" as suffix for bytecode files.


---
Diffs of the changes:  (+8 -0)

Index: llvm/lib/System/Unix/Path.cpp
diff -u llvm/lib/System/Unix/Path.cpp:1.6 llvm/lib/System/Unix/Path.cpp:1.7
--- llvm/lib/System/Unix/Path.cpp:1.6	Mon Sep 13 19:16:39 2004
+++ llvm/lib/System/Unix/Path.cpp	Thu Sep 16 11:36:10 2004
@@ -52,6 +52,8 @@
       return true;
     else if (path.elide_suffix() && path.append_suffix("o") && path.readable())
       return true;
+    else if (path.elide_suffix() && path.append_suffix("bc") && path.readable())
+      return true;
   } else if (path.elide_file() && path.append_file(basename)) {
     if (path.append_suffix(Path::GetDLLSuffix()) && path.readable())
       return true;
@@ -59,6 +61,8 @@
       return true;
     else if (path.elide_suffix() && path.append_suffix("o") && path.readable())
       return true;
+    else if (path.elide_suffix() && path.append_suffix("bc") && path.readable())
+      return true;
   }
   path.clear();
   return false;
@@ -76,6 +80,10 @@
       return result;
   }
 
+  // Try the LLVM lib directory in the LLVM install area
+  if (result.set_directory(LLVM_LIBDIR) && IsLibrary(result,basename))
+    return result;
+
   // Try /usr/lib
   if (result.set_directory("/usr/lib/") && IsLibrary(result,basename))
     return result;






More information about the llvm-commits mailing list