[llvm-commits] [TV] r79000 - in /television/trunk/include/llvm-tv: Config.h Support/FileUtils.h Support/Snapshots.h

Misha Brukman brukman+llvm at gmail.com
Fri Aug 14 07:55:34 PDT 2009


Author: brukman
Date: Fri Aug 14 09:55:34 2009
New Revision: 79000

URL: http://llvm.org/viewvc/llvm-project?rev=79000&view=rev
Log:
General cleanups:
* Added missing copyright header, #include, forward class decl
* Dropped trailing whitespace, extraneous comment
* Fixed indentation in namespace

Modified:
    television/trunk/include/llvm-tv/Config.h
    television/trunk/include/llvm-tv/Support/FileUtils.h
    television/trunk/include/llvm-tv/Support/Snapshots.h

Modified: television/trunk/include/llvm-tv/Config.h
URL: http://llvm.org/viewvc/llvm-project/television/trunk/include/llvm-tv/Config.h?rev=79000&r1=78999&r2=79000&view=diff

==============================================================================
--- television/trunk/include/llvm-tv/Config.h (original)
+++ television/trunk/include/llvm-tv/Config.h Fri Aug 14 09:55:34 2009
@@ -1,16 +1,25 @@
+//===- Config.h - LLVM-TV configuration parameters ------------*- C++ -*---===//
+//
+//                     The LLVM Compiler Infrastructure
+//
+// This file was developed by the LLVM research group and is distributed under
+// the University of Illinois Open Source License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
 #ifndef LLVM_TV_CONFIG_H
 #define LLVM_TV_CONFIG_H
 
+#include <cstdlib>
 #include <string>
 
 namespace {
 
-  // To make sure we don't collide if working on the same machine,
-  // the llvm-tv data directory is user-specific
-  const std::string llvmtvPath    = "/tmp/llvm-tv-" + 
-                                    std::string(getenv("USER"));
-  const std::string snapshotsPath = llvmtvPath + "/snapshots";
-  const std::string llvmtvPID     = llvmtvPath + "/llvm-tv.pid";
+// To make sure we don't collide if working on the same machine,
+// the llvm-tv data directory is user-specific.
+const std::string llvmtvPath    = "/tmp/llvm-tv-" + std::string(getenv("USER"));
+const std::string snapshotsPath = llvmtvPath + "/snapshots";
+const std::string llvmtvPID     = llvmtvPath + "/llvm-tv.pid";
 
 }
 

Modified: television/trunk/include/llvm-tv/Support/FileUtils.h
URL: http://llvm.org/viewvc/llvm-project/television/trunk/include/llvm-tv/Support/FileUtils.h?rev=79000&r1=78999&r2=79000&view=diff

==============================================================================
--- television/trunk/include/llvm-tv/Support/FileUtils.h (original)
+++ television/trunk/include/llvm-tv/Support/FileUtils.h Fri Aug 14 09:55:34 2009
@@ -1,10 +1,10 @@
 //===- FileUtils.h - File system utility functions for snapshotting -------===//
-// 
+//
 //                     The LLVM Compiler Infrastructure
 //
 // This file was developed by the LLVM research group and is distributed under
 // the University of Illinois Open Source License. See LICENSE.TXT for details.
-// 
+//
 //===----------------------------------------------------------------------===//
 //
 // File-system functionality useful for snapshotting (Unix-specific).
@@ -31,6 +31,6 @@
 
 void EnsureDirectoryExists (const std::string &dirPath);
 
-};
+}
 
 #endif

Modified: television/trunk/include/llvm-tv/Support/Snapshots.h
URL: http://llvm.org/viewvc/llvm-project/television/trunk/include/llvm-tv/Support/Snapshots.h?rev=79000&r1=78999&r2=79000&view=diff

==============================================================================
--- television/trunk/include/llvm-tv/Support/Snapshots.h (original)
+++ television/trunk/include/llvm-tv/Support/Snapshots.h Fri Aug 14 09:55:34 2009
@@ -1,10 +1,10 @@
 //===- Snapshots.h - Snapshot utility functions ---------------*- C++ -*---===//
-// 
+//
 //                     The LLVM Compiler Infrastructure
 //
 // This file was developed by the LLVM research group and is distributed under
 // the University of Illinois Open Source License. See LICENSE.TXT for details.
-// 
+//
 //===----------------------------------------------------------------------===//
 //
 //
@@ -17,9 +17,11 @@
 #include <vector>
 
 namespace llvm {
-  
+
+class Module;
+
 void ReadSnapshots(std::vector<std::string> &oldModules,
-                   std::vector<Module*> NewModules); 
+                   std::vector<llvm::Module*> NewModules);
 
 }
 





More information about the llvm-commits mailing list