FileEntry: Remove unused and half-broken copy ctor.
llvm-svn: 202893
This commit is contained in:
parent
eb862849a1
commit
4bd1ffa3ee
|
@ -77,6 +77,7 @@ class FileEntry {
|
|||
File.reset(0); // rely on destructor to close File
|
||||
}
|
||||
|
||||
FileEntry(const FileEntry &FE) LLVM_DELETED_FUNCTION;
|
||||
void operator=(const FileEntry &) LLVM_DELETED_FUNCTION;
|
||||
|
||||
public:
|
||||
|
@ -84,15 +85,6 @@ public:
|
|||
: UniqueID(0, 0), IsNamedPipe(false), InPCH(false), IsValid(false)
|
||||
{}
|
||||
|
||||
// FIXME: this is here to allow putting FileEntry in std::map. Once we have
|
||||
// emplace, we shouldn't need a copy constructor anymore.
|
||||
/// Intentionally does not copy fields that are not set in an uninitialized
|
||||
/// \c FileEntry.
|
||||
FileEntry(const FileEntry &FE) : UniqueID(FE.UniqueID),
|
||||
IsNamedPipe(FE.IsNamedPipe), InPCH(FE.InPCH), IsValid(FE.IsValid) {
|
||||
assert(!isValid() && "Cannot copy an initialized FileEntry");
|
||||
}
|
||||
|
||||
const char *getName() const { return Name.c_str(); }
|
||||
bool isValid() const { return IsValid; }
|
||||
off_t getSize() const { return Size; }
|
||||
|
|
Loading…
Reference in New Issue