Path::get -> Path::toString
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18785 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/llvm-ar/llvm-ar.cpp b/tools/llvm-ar/llvm-ar.cpp
index 2a9b471..1d75bec 100644
--- a/tools/llvm-ar/llvm-ar.cpp
+++ b/tools/llvm-ar/llvm-ar.cpp
@@ -345,7 +345,7 @@
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 @@
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 @@
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 @@
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 @@
len = 15;
compare.assign(nm,len);
}
- if (compare == I->getPath().get()) {
+ if (compare == I->getPath().toString()) {
found = RI;
break;
}
@@ -622,9 +622,9 @@
}
// 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 @@
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);