summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-ar/Archive.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-19 17:49:07 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-19 17:49:07 +0000
commit351a88f697363a2a6910602c1443f696a8c0b2eb (patch)
tree7b37142e403457384c034a32cbac929346771415 /llvm/tools/llvm-ar/Archive.cpp
parent991f42c35f27209e01ebfea960d438863a9cf4bf (diff)
downloadbcm5719-llvm-351a88f697363a2a6910602c1443f696a8c0b2eb.tar.gz
bcm5719-llvm-351a88f697363a2a6910602c1443f696a8c0b2eb.zip
Remove more uses of sys::Path.
llvm-svn: 184328
Diffstat (limited to 'llvm/tools/llvm-ar/Archive.cpp')
-rw-r--r--llvm/tools/llvm-ar/Archive.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/tools/llvm-ar/Archive.cpp b/llvm/tools/llvm-ar/Archive.cpp
index 9086d4e42e7..70fddcfe4d2 100644
--- a/llvm/tools/llvm-ar/Archive.cpp
+++ b/llvm/tools/llvm-ar/Archive.cpp
@@ -67,7 +67,7 @@ ArchiveMember::ArchiveMember(Archive* PAR)
// This method allows an ArchiveMember to be replaced with the data for a
// different file, presumably as an update to the member. It also makes sure
// the flags are reset correctly.
-bool ArchiveMember::replaceWith(const sys::Path& newFile, std::string* ErrMsg) {
+bool ArchiveMember::replaceWith(StringRef newFile, std::string* ErrMsg) {
bool Exists;
if (sys::fs::exists(newFile.str(), Exists) || !Exists) {
if (ErrMsg)
@@ -136,10 +136,9 @@ bool ArchiveMember::replaceWith(const sys::Path& newFile, std::string* ErrMsg) {
// Archive constructor - this is the only constructor that gets used for the
// Archive class. Everything else (default,copy) is deprecated. This just
// initializes and maps the file into memory, if requested.
-Archive::Archive(const sys::Path& filename, LLVMContext& C)
- : archPath(filename), members(), mapfile(0), base(0), symTab(), strtab(),
- symTabSize(0), firstFileOffset(0), modules(), foreignST(0), Context(C) {
-}
+Archive::Archive(StringRef filename, LLVMContext &C)
+ : archPath(filename), members(), mapfile(0), base(0), symTab(), strtab(),
+ symTabSize(0), firstFileOffset(0), modules(), foreignST(0), Context(C) {}
bool
Archive::mapToMemory(std::string* ErrMsg) {
OpenPOWER on IntegriCloud