summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Archive/Archive.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-12-11 00:14:15 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-12-11 00:14:15 +0000
commit5ccfd5a48bf5d6e27ce0f38fac107d9095704767 (patch)
tree3ccb7b879e901d06d346fd8f6c2d9175c1408e4f /llvm/lib/Bytecode/Archive/Archive.cpp
parenteef4420578b93f4024275096908719fc458b4a03 (diff)
downloadbcm5719-llvm-5ccfd5a48bf5d6e27ce0f38fac107d9095704767.tar.gz
bcm5719-llvm-5ccfd5a48bf5d6e27ce0f38fac107d9095704767.zip
Path::get -> Path::toString
llvm-svn: 18785
Diffstat (limited to 'llvm/lib/Bytecode/Archive/Archive.cpp')
-rw-r--r--llvm/lib/Bytecode/Archive/Archive.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/lib/Bytecode/Archive/Archive.cpp b/llvm/lib/Bytecode/Archive/Archive.cpp
index 8e405907e62..2d79bd66ed3 100644
--- a/llvm/lib/Bytecode/Archive/Archive.cpp
+++ b/llvm/lib/Bytecode/Archive/Archive.cpp
@@ -26,7 +26,7 @@ ArchiveMember::getMemberSize() const {
// If it has a long filename, include the name length
if (hasLongFilename())
- result += path.get().length() + 1;
+ result += path.toString().length() + 1;
// If its now odd lengthed, include the padding byte
if (result % 2 != 0 )
@@ -66,38 +66,38 @@ void ArchiveMember::replaceWith(const sys::Path& newFile) {
path = newFile;
// SVR4 symbol tables have an empty name
- if (path.get() == ARFILE_SVR4_SYMTAB_NAME)
+ if (path.toString() == ARFILE_SVR4_SYMTAB_NAME)
flags |= SVR4SymbolTableFlag;
else
flags &= ~SVR4SymbolTableFlag;
// BSD4.4 symbol tables have a special name
- if (path.get() == ARFILE_BSD4_SYMTAB_NAME)
+ if (path.toString() == ARFILE_BSD4_SYMTAB_NAME)
flags |= BSD4SymbolTableFlag;
else
flags &= ~BSD4SymbolTableFlag;
// LLVM symbol tables have a very specific name
- if (path.get() == ARFILE_LLVM_SYMTAB_NAME)
+ if (path.toString() == ARFILE_LLVM_SYMTAB_NAME)
flags |= LLVMSymbolTableFlag;
else
flags &= ~LLVMSymbolTableFlag;
// String table name
- if (path.get() == ARFILE_STRTAB_NAME)
+ if (path.toString() == ARFILE_STRTAB_NAME)
flags |= StringTableFlag;
else
flags &= ~StringTableFlag;
// If it has a slash then it has a path
- bool hasSlash = path.get().find('/') != std::string::npos;
+ bool hasSlash = path.toString().find('/') != std::string::npos;
if (hasSlash)
flags |= HasPathFlag;
else
flags &= ~HasPathFlag;
// If it has a slash or its over 15 chars then its a long filename format
- if (hasSlash || path.get().length() > 15)
+ if (hasSlash || path.toString().length() > 15)
flags |= HasLongFilenameFlag;
else
flags &= ~HasLongFilenameFlag;
OpenPOWER on IntegriCloud