summaryrefslogtreecommitdiff
path: root/tools/llvm-ar
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-11-14 23:17:41 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-11-14 23:17:41 +0000
commitb55bc06bad38162735f6e5ae2765be686fb47b2c (patch)
tree518a5cba3db19151a9911f5a151bf5c9da8b4352 /tools/llvm-ar
parentd292fb92e879223ba52331a63d8899b65eddfd76 (diff)
downloadllvm-b55bc06bad38162735f6e5ae2765be686fb47b2c.tar.gz
llvm-b55bc06bad38162735f6e5ae2765be686fb47b2c.tar.bz2
llvm-b55bc06bad38162735f6e5ae2765be686fb47b2c.tar.xz
Correct call of methods whose names have changed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17803 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-ar')
-rw-r--r--tools/llvm-ar/llvm-ar.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/llvm-ar/llvm-ar.cpp b/tools/llvm-ar/llvm-ar.cpp
index 2d1d6219ac..74ea8bf5dc 100644
--- a/tools/llvm-ar/llvm-ar.cpp
+++ b/tools/llvm-ar/llvm-ar.cpp
@@ -356,9 +356,9 @@ void doPrint() {
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 @@ void doDisplayTable() {
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 @@ void doExtract() {
// 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);
}