[llvm-commits] CVS: llvm/tools/llvm-ar/llvm-ar.cpp

Reid Spencer reid at x10sys.com
Sun Nov 14 15:18:28 PST 2004



Changes in directory llvm/tools/llvm-ar:

llvm-ar.cpp updated: 1.16 -> 1.17
---
Log message:

Correct call of methods whose names have changed.


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

Index: llvm/tools/llvm-ar/llvm-ar.cpp
diff -u llvm/tools/llvm-ar/llvm-ar.cpp:1.16 llvm/tools/llvm-ar/llvm-ar.cpp:1.17
--- llvm/tools/llvm-ar/llvm-ar.cpp:1.16	Sun Nov 14 16:20:07 2004
+++ llvm/tools/llvm-ar/llvm-ar.cpp	Sun Nov 14 17:17:41 2004
@@ -356,9 +356,9 @@
           std::cout << "Printing " << I->getPath().get() << "\n";
 
         if (I->isCompressedBytecode())
-          Compressor::decompressToFile(data+4,I->getSize()-4,std::cout);
+          Compressor::decompressToStream(data+4,I->getSize()-4,std::cout);
         else if (I->isCompressed()) {
-          Compressor::decompressToFile(data,I->getSize(),std::cout);
+          Compressor::decompressToStream(data,I->getSize(),std::cout);
         } else {
           unsigned len = I->getSize();
           std::cout.write(data, len);
@@ -420,7 +420,7 @@
         std::cout << "/" << std::setw(4) << I->getGroup();
         std::cout << " " << std::setw(8) << I->getSize();
         std::cout << " " << std::setw(20) << 
-          I->getModTime().ToString().substr(4);
+          I->getModTime().toString().substr(4);
         std::cout << " " << I->getPath().get() << "\n";
       } else {
         std::cout << I->getPath().get() << "\n";
@@ -464,7 +464,7 @@
 
       // Write the data, making sure to uncompress things first
       if (I->isCompressed()) {
-        Compressor::decompressToFile(data,len,file);
+        Compressor::decompressToStream(data,len,file);
       } else {
         file.write(data,len);
       }






More information about the llvm-commits mailing list