diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-04-04 06:31:04 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-04-04 06:31:04 +0000 |
commit | 20c348978ea0d3ec7177fab801d619ccbe7d815f (patch) | |
tree | 226a2496a36fbc62823fafc074e4bb94a366d4b6 /lib/Bytecode | |
parent | 8bb5fd17f9a715ac9ce87619f3b6c1066a244859 (diff) | |
download | external_llvm-20c348978ea0d3ec7177fab801d619ccbe7d815f.zip external_llvm-20c348978ea0d3ec7177fab801d619ccbe7d815f.tar.gz external_llvm-20c348978ea0d3ec7177fab801d619ccbe7d815f.tar.bz2 |
For PR1302:
Adjust useage of sys::Path::FileType for new enumerator names.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35651 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode')
-rw-r--r-- | lib/Bytecode/Archive/Archive.cpp | 4 | ||||
-rw-r--r-- | lib/Bytecode/Archive/ArchiveReader.cpp | 4 | ||||
-rw-r--r-- | lib/Bytecode/Archive/ArchiveWriter.cpp | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/Bytecode/Archive/Archive.cpp b/lib/Bytecode/Archive/Archive.cpp index f9fa807..d594a87 100644 --- a/lib/Bytecode/Archive/Archive.cpp +++ b/lib/Bytecode/Archive/Archive.cpp @@ -125,10 +125,10 @@ bool ArchiveMember::replaceWith(const sys::Path& newFile, std::string* ErrMsg) { // Determine what kind of file it is switch (sys::IdentifyFileType(signature,4)) { - case sys::BytecodeFileType: + case sys::Bytecode_FileType: flags |= BytecodeFlag; break; - case sys::CompressedBytecodeFileType: + case sys::CompressedBytecode_FileType: flags |= CompressedBytecodeFlag; flags &= ~CompressedFlag; break; diff --git a/lib/Bytecode/Archive/ArchiveReader.cpp b/lib/Bytecode/Archive/ArchiveReader.cpp index 67b6549..58b1e20 100644 --- a/lib/Bytecode/Archive/ArchiveReader.cpp +++ b/lib/Bytecode/Archive/ArchiveReader.cpp @@ -205,10 +205,10 @@ Archive::parseMemberHeader(const char*& At, const char* End, std::string* error) // Determine if this is a bytecode file switch (sys::IdentifyFileType(At, 4)) { - case sys::BytecodeFileType: + case sys::Bytecode_FileType: flags |= ArchiveMember::BytecodeFlag; break; - case sys::CompressedBytecodeFileType: + case sys::CompressedBytecode_FileType: flags |= ArchiveMember::CompressedBytecodeFlag; flags &= ~ArchiveMember::CompressedFlag; break; diff --git a/lib/Bytecode/Archive/ArchiveWriter.cpp b/lib/Bytecode/Archive/ArchiveWriter.cpp index fc85374..b8e3280 100644 --- a/lib/Bytecode/Archive/ArchiveWriter.cpp +++ b/lib/Bytecode/Archive/ArchiveWriter.cpp @@ -178,10 +178,10 @@ Archive::addFileBefore(const sys::Path& filePath, iterator where, std::string magic; mbr->path.getMagicNumber(magic,4); switch (sys::IdentifyFileType(magic.c_str(),4)) { - case sys::BytecodeFileType: + case sys::Bytecode_FileType: flags |= ArchiveMember::BytecodeFlag; break; - case sys::CompressedBytecodeFileType: + case sys::CompressedBytecode_FileType: flags |= ArchiveMember::CompressedBytecodeFlag; break; default: |