From: Ted Kremenek Date: Wed, 28 Jan 2009 00:27:31 +0000 (+0000) Subject: Add a some comments to designate Windows-specific/Unix-specific code. No functionali... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cb8d58b82859d2c56b679b901de38f416e2b6f48;p=clang 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 cfc08ed084..3f7c4fd74b 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 @@ using namespace clang; /// represent a dir name that doesn't exist on the disk. #define NON_EXISTENT_DIR reinterpret_cast((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),