Details
Diff Detail
Event Timeline
llvm/include/llvm/Support/FileSystem.h | ||
---|---|---|
167 | It seems like system types are used here when LLVM_ON_UNIX is defined, so you should probably define LinkCount as nlink_t fs_st_nlink; for POSIX and uint32_t LinkCount; only for the Windows case (which means you'll also have to have two separate getters down below). I'll let someone more knowledgeable with this code confirm what the right thing to do is. |
llvm/include/llvm/Support/FileSystem.h | ||
---|---|---|
167 | That certainly seems to be the pattern, although I am not really sure why. I am personally fine with having a single field if it is big enough to hold the value in all circumstances -- which means the type should be 64-bit as that's the type of nlink_t on 64-bit (linux) systems. |
It seems like system types are used here when LLVM_ON_UNIX is defined, so you should probably define LinkCount as nlink_t fs_st_nlink; for POSIX and uint32_t LinkCount; only for the Windows case (which means you'll also have to have two separate getters down below).
I'll let someone more knowledgeable with this code confirm what the right thing to do is.