[llvm-commits] CVS: llvm/lib/Bytecode/Archive/Archive.cpp ArchiveReader.cpp ArchiveWriter.cpp

Reid Spencer reid at x10sys.com
Tue Apr 3 23:31:21 PDT 2007



Changes in directory llvm/lib/Bytecode/Archive:

Archive.cpp updated: 1.19 -> 1.20
ArchiveReader.cpp updated: 1.49 -> 1.50
ArchiveWriter.cpp updated: 1.36 -> 1.37
---
Log message:

For PR1302: http://llvm.org/PR1302 :
Adjust useage of sys::Path::FileType for new enumerator names.


---
Diffs of the changes:  (+6 -6)

 Archive.cpp       |    4 ++--
 ArchiveReader.cpp |    4 ++--
 ArchiveWriter.cpp |    4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)


Index: llvm/lib/Bytecode/Archive/Archive.cpp
diff -u llvm/lib/Bytecode/Archive/Archive.cpp:1.19 llvm/lib/Bytecode/Archive/Archive.cpp:1.20
--- llvm/lib/Bytecode/Archive/Archive.cpp:1.19	Thu Mar 29 14:05:44 2007
+++ llvm/lib/Bytecode/Archive/Archive.cpp	Wed Apr  4 01:31:04 2007
@@ -125,10 +125,10 @@
 
   // 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;


Index: llvm/lib/Bytecode/Archive/ArchiveReader.cpp
diff -u llvm/lib/Bytecode/Archive/ArchiveReader.cpp:1.49 llvm/lib/Bytecode/Archive/ArchiveReader.cpp:1.50
--- llvm/lib/Bytecode/Archive/ArchiveReader.cpp:1.49	Wed Feb  7 15:41:01 2007
+++ llvm/lib/Bytecode/Archive/ArchiveReader.cpp	Wed Apr  4 01:31:04 2007
@@ -205,10 +205,10 @@
 
   // 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;


Index: llvm/lib/Bytecode/Archive/ArchiveWriter.cpp
diff -u llvm/lib/Bytecode/Archive/ArchiveWriter.cpp:1.36 llvm/lib/Bytecode/Archive/ArchiveWriter.cpp:1.37
--- llvm/lib/Bytecode/Archive/ArchiveWriter.cpp:1.36	Thu Mar 29 14:05:44 2007
+++ llvm/lib/Bytecode/Archive/ArchiveWriter.cpp	Wed Apr  4 01:31:04 2007
@@ -178,10 +178,10 @@
   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:






More information about the llvm-commits mailing list