Add a some comments to designate Windows-specific/Unix-specific code. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63157 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Basic/FileManager.cpp b/lib/Basic/FileManager.cpp
index cfc08ed..3f7c4fd 100644
--- a/lib/Basic/FileManager.cpp
+++ b/lib/Basic/FileManager.cpp
@@ -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 @@
/// 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 @@
size_t size() { return UniqueFiles.size(); }
};
+//===----------------------------------------------------------------------===//
+// Unix-like Systems.
+//===----------------------------------------------------------------------===//
+
#else
#define IS_DIR_SEPARATOR_CHAR(x) ((x) == '/')
@@ -122,6 +131,9 @@
#endif
+//===----------------------------------------------------------------------===//
+// Common logic.
+//===----------------------------------------------------------------------===//
FileManager::FileManager() : UniqueDirs(*new UniqueDirContainer),
UniqueFiles(*new UniqueFileContainer),