Fix 2 problems with Chris Lattner's FileManager redesign on Windows.

- FileEntry::operator= is needed on Win32.
- There was an error in the S_ISDIR() macro.

llvm-svn: 120079
This commit is contained in:
Francois Pichet 2010-11-24 03:07:43 +00:00
parent 4e70ac7b68
commit 31ee8bfb0e
2 changed files with 1 additions and 2 deletions

View File

@ -64,7 +64,6 @@ class FileEntry {
mutable int FD;
friend class FileManager;
void operator=(const FileEntry&); // DO NOT IMPLEMENT.
public:
FileEntry(dev_t device, ino_t inode, mode_t m)
: Name(0), Device(device), Inode(inode), FileMode(m), FD(-1) {}

View File

@ -25,7 +25,7 @@
using namespace clang;
#if defined(_MSC_VER)
#define S_ISDIR(s) (_S_IFDIR & s)
#define S_ISDIR(s) ((_S_IFDIR & s) !=0)
#endif
/// FileSystemStatCache::get - Get the 'stat' information for the specified