diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-12-11 00:14:15 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-12-11 00:14:15 +0000 |
commit | 1fce09125cb46c91407668ca29915c450a482811 (patch) | |
tree | 9a221a439d7dc3ec57b8fa6cf345b90b6198d883 /tools/llvm-ar/llvm-ar.cpp | |
parent | 357cf5439a5e0ad49245dc75798b6490d67834fd (diff) |
Path::get -> Path::toString
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18785 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-ar/llvm-ar.cpp')
-rw-r--r-- | tools/llvm-ar/llvm-ar.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tools/llvm-ar/llvm-ar.cpp b/tools/llvm-ar/llvm-ar.cpp index 2a9b4717d0..1d75becf03 100644 --- a/tools/llvm-ar/llvm-ar.cpp +++ b/tools/llvm-ar/llvm-ar.cpp @@ -345,7 +345,7 @@ void doPrint() { continue; if (Verbose) - std::cout << "Printing " << I->getPath().get() << "\n"; + std::cout << "Printing " << I->getPath().toString() << "\n"; if (I->isCompressedBytecode()) Compressor::decompressToStream(data+4,I->getSize()-4,std::cout); @@ -409,9 +409,9 @@ void doDisplayTable() { std::cout << " " << std::setw(8) << I->getSize(); std::cout << " " << std::setw(20) << I->getModTime().toString().substr(4); - std::cout << " " << I->getPath().get() << "\n"; + std::cout << " " << I->getPath().toString() << "\n"; } else { - std::cout << I->getPath().get() << "\n"; + std::cout << I->getPath().toString() << "\n"; } } } @@ -505,7 +505,7 @@ void doMove() { if (AddBefore || InsertBefore || AddAfter) { for (Archive::iterator I = TheArchive->begin(), E= TheArchive->end(); I != E; ++I ) { - if (RelPos == I->getPath().get()) { + if (RelPos == I->getPath().toString()) { if (AddAfter) { moveto_spot = I; moveto_spot++; @@ -582,7 +582,7 @@ void doReplaceOrInsert() { std::set<sys::Path>::iterator found = remaining.end(); for (std::set<sys::Path>::iterator RI = remaining.begin(), RE = remaining.end(); RI != RE; ++RI ) { - std::string compare(RI->get()); + std::string compare(RI->toString()); if (TruncateNames && compare.length() > 15) { const char* nm = compare.c_str(); unsigned len = compare.length(); @@ -595,7 +595,7 @@ void doReplaceOrInsert() { len = 15; compare.assign(nm,len); } - if (compare == I->getPath().get()) { + if (compare == I->getPath().toString()) { found = RI; break; } @@ -622,9 +622,9 @@ void doReplaceOrInsert() { } // Determine if this is the place where we should insert - if ((AddBefore || InsertBefore) && (RelPos == I->getPath().get())) + if ((AddBefore || InsertBefore) && (RelPos == I->getPath().toString())) insert_spot = I; - else if (AddAfter && (RelPos == I->getPath().get())) { + else if (AddAfter && (RelPos == I->getPath().toString())) { insert_spot = I; insert_spot++; } @@ -675,7 +675,7 @@ int main(int argc, char **argv) { if (!ArchivePath.exists()) { // Produce a warning if we should and we're creating the archive if (!Create) - std::cerr << argv[0] << ": creating " << ArchivePath.get() << "\n"; + std::cerr << argv[0] << ": creating " << ArchivePath.toString() << "\n"; TheArchive = Archive::CreateEmpty(ArchivePath); } else { TheArchive = Archive::OpenAndLoad(ArchivePath); |