]> granicus.if.org Git - clang/commitdiff
Add a some comments to designate Windows-specific/Unix-specific code. No functionali...
authorTed Kremenek <kremenek@apple.com>
Wed, 28 Jan 2009 00:27:31 +0000 (00:27 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 28 Jan 2009 00:27:31 +0000 (00:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63157 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/FileManager.cpp

index cfc08ed084b1f87588272b0a7547b9a8e0c6a124..3f7c4fd74b0249964ac83b69222f33858b225faf 100644 (file)
@@ -22,6 +22,7 @@
 #include "llvm/Bitcode/Serialize.h"
 #include "llvm/Bitcode/Deserialize.h"
 #include "llvm/Support/Streams.h"
+#include "llvm/Support/Allocator.h"
 #include "llvm/Config/config.h"
 using namespace clang;
 
@@ -36,6 +37,10 @@ using namespace clang;
 /// represent a dir name that doesn't exist on the disk.
 #define NON_EXISTENT_DIR reinterpret_cast<DirectoryEntry*>((intptr_t)-1)
 
+//===----------------------------------------------------------------------===//
+// Windows.
+//===----------------------------------------------------------------------===//
+
 #ifdef LLVM_ON_WIN32
 
 #define IS_DIR_SEPARATOR_CHAR(x) ((x) == '/' || (x) == '\\')
@@ -87,6 +92,10 @@ public:
   size_t size() { return UniqueFiles.size(); }
 };
 
+//===----------------------------------------------------------------------===//
+// Unix-like Systems.
+//===----------------------------------------------------------------------===//
+
 #else
 
 #define IS_DIR_SEPARATOR_CHAR(x) ((x) == '/')
@@ -122,6 +131,9 @@ public:
 
 #endif
 
+//===----------------------------------------------------------------------===//
+// Common logic.
+//===----------------------------------------------------------------------===//
 
 FileManager::FileManager() : UniqueDirs(*new UniqueDirContainer),
                              UniqueFiles(*new UniqueFileContainer),