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

Reid Spencer reid at x10sys.com
Fri Sep 10 21:59:42 PDT 2004



Changes in directory llvm/lib/System:

Memory.cpp added (r1.1)
Process.cpp added (r1.1)
Path.cpp updated: 1.5 -> 1.6
---
Log message:

Provide initial implementations of Memory and Process concepts for various
platforms.
Implement GetLLVMSuffix function for the Path concept.


---
Diffs of the changes:  (+59 -10)

Index: llvm/lib/System/Memory.cpp
diff -c /dev/null llvm/lib/System/Memory.cpp:1.1
*** /dev/null	Fri Sep 10 23:59:40 2004
--- llvm/lib/System/Memory.cpp	Fri Sep 10 23:59:30 2004
***************
*** 0 ****
--- 1,30 ----
+ //===- Memory.cpp - Memory Handling Support ---------------------*- C++ -*-===//
+ // 
+ //                     The LLVM Compiler Infrastructure
+ //
+ // This file was developed by Reid Spencer and is distributed under the 
+ // University of Illinois Open Source License. See LICENSE.TXT for details.
+ // 
+ //===----------------------------------------------------------------------===//
+ //
+ // This file defines some helpful functions for allocating memory and dealing
+ // with memory mapped files
+ //
+ //===----------------------------------------------------------------------===//
+ 
+ #include "llvm/System/Memory.h"
+ 
+ namespace llvm {
+ using namespace sys;
+ 
+ //===----------------------------------------------------------------------===//
+ //=== WARNING: Implementation here must contain only TRULY operating system
+ //===          independent code. 
+ //===----------------------------------------------------------------------===//
+ 
+ }
+ 
+ // Include the platform-specific parts of this class.
+ #include "platform/Memory.cpp"
+ 
+ // vim: sw=2 smartindent smarttab tw=80 autoindent expandtab


Index: llvm/lib/System/Process.cpp
diff -c /dev/null llvm/lib/System/Process.cpp:1.1
*** /dev/null	Fri Sep 10 23:59:42 2004
--- llvm/lib/System/Process.cpp	Fri Sep 10 23:59:30 2004
***************
*** 0 ****
--- 1,29 ----
+ //===-- Process.cpp - Implement OS Process Concept --------------*- C++ -*-===//
+ // 
+ //                     The LLVM Compiler Infrastructure
+ //
+ // This file was developed by Reid Spencer and is distributed under the 
+ // University of Illinois Open Source License. See LICENSE.TXT for details.
+ // 
+ //===----------------------------------------------------------------------===//
+ //
+ //  This header file implements the operating system Process concept.
+ //
+ //===----------------------------------------------------------------------===//
+ 
+ #include "llvm/System/Process.h"
+ 
+ namespace llvm {
+ using namespace sys;
+ 
+ //===----------------------------------------------------------------------===//
+ //=== WARNING: Implementation here must contain only TRULY operating system
+ //===          independent code. 
+ //===----------------------------------------------------------------------===//
+ 
+ }
+ 
+ // Include the platform-specific parts of this class.
+ #include "platform/Process.cpp"
+ 
+ // vim: sw=2 smartindent smarttab tw=80 autoindent expandtab


Index: llvm/lib/System/Path.cpp
diff -u llvm/lib/System/Path.cpp:1.5 llvm/lib/System/Path.cpp:1.6
--- llvm/lib/System/Path.cpp:1.5	Sun Aug 29 14:24:53 2004
+++ llvm/lib/System/Path.cpp	Fri Sep 10 23:59:30 2004
@@ -21,16 +21,6 @@
 //===          independent code. 
 //===----------------------------------------------------------------------===//
 
-bool
-Path::is_file() const {
-  return (is_valid() && path[path.length()-1] != '/');
-}
-
-bool
-Path::is_directory() const {
-  return (is_valid() && path[path.length()-1] == '/');
-}
-
 }
 
 // Include the truly platform-specific parts of this class.






More information about the llvm-commits mailing list