[cfe-commits] r63157 - /cfe/trunk/lib/Basic/FileManager.cpp
Ted Kremenek
kremenek at apple.com
Tue Jan 27 16:27:31 PST 2009
Author: kremenek
Date: Tue Jan 27 18:27:31 2009
New Revision: 63157
URL: http://llvm.org/viewvc/llvm-project?rev=63157&view=rev
Log:
Add a some comments to designate Windows-specific/Unix-specific code. No functionality change.
Modified:
cfe/trunk/lib/Basic/FileManager.cpp
Modified: cfe/trunk/lib/Basic/FileManager.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/FileManager.cpp?rev=63157&r1=63156&r2=63157&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/FileManager.cpp (original)
+++ cfe/trunk/lib/Basic/FileManager.cpp Tue Jan 27 18:27:31 2009
@@ -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),
More information about the cfe-commits
mailing list