Copy ExpandInlineAsm to TargetLowering from TargetAsmInfo.
[oota-llvm.git] / include / llvm / System / Path.h
index de2f173ae41751f4b6a6b6f600169cf2b92d219a..8b603f5ad42c5d5f5d6c5f38f4ec1704daf46482 100644 (file)
@@ -15,6 +15,7 @@
 #define LLVM_SYSTEM_PATH_H
 
 #include "llvm/System/TimeValue.h"
+#include "llvm/Support/raw_ostream.h"
 #include <set>
 #include <string>
 #include <vector>
@@ -309,6 +310,11 @@ namespace sys {
       /// @brief Determine if the path is absolute.
       bool isAbsolute() const;
 
+      /// This function determines if the path name is absolute, as opposed to
+      /// relative.
+      /// @brief Determine if the path is absolute.
+      static bool isAbsolute(const char *NameStart, unsigned NameLen);
+
       /// This function opens the file associated with the path name provided by
       /// the Path object and reads its magic number. If the magic number at the
       /// start of the file matches \p magic, true is returned. In all other
@@ -709,6 +715,17 @@ namespace sys {
   extern const char PathSeparator;
 }
 
+inline raw_ostream& operator<<(raw_ostream& strm, const sys::Path& aPath) {
+  strm << aPath.toString();
+  return strm;
+}
+
+inline raw_ostream& operator<<(raw_ostream& strm,
+                               const sys::PathWithStatus& aPath) {
+  strm << static_cast<const sys::Path&>(aPath);
+  return strm;
+}
+
 std::ostream& operator<<(std::ostream& strm, const sys::Path& aPath);
 inline std::ostream& operator<<(std::ostream& strm,
                                 const sys::PathWithStatus& aPath) {