diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-10 15:27:39 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-10 15:27:39 +0000 |
commit | f12745f7a7e68c05c89ebd515b9b4faedce37dd0 (patch) | |
tree | cddc0ab5c895c526e7a8113f5fb60ee5870fead6 /lib/Archive | |
parent | b972457783f6f992d8ee2fe392609fd4b0c5cf00 (diff) | |
download | external_llvm-f12745f7a7e68c05c89ebd515b9b4faedce37dd0.zip external_llvm-f12745f7a7e68c05c89ebd515b9b4faedce37dd0.tar.gz external_llvm-f12745f7a7e68c05c89ebd515b9b4faedce37dd0.tar.bz2 |
Pass a StringRef to sys::identifyFileType.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183669 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Archive')
-rw-r--r-- | lib/Archive/Archive.cpp | 2 | ||||
-rw-r--r-- | lib/Archive/ArchiveReader.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Archive/Archive.cpp b/lib/Archive/Archive.cpp index 1f36a00..2b92d0ff 100644 --- a/lib/Archive/Archive.cpp +++ b/lib/Archive/Archive.cpp @@ -129,7 +129,7 @@ bool ArchiveMember::replaceWith(const sys::Path& newFile, std::string* ErrMsg) { } // Determine what kind of file it is. - switch (sys::IdentifyFileType(signature,4)) { + switch (sys::identifyFileType(StringRef(signature, 4))) { case sys::Bitcode_FileType: flags |= BitcodeFlag; break; diff --git a/lib/Archive/ArchiveReader.cpp b/lib/Archive/ArchiveReader.cpp index 14713e6..6550599 100644 --- a/lib/Archive/ArchiveReader.cpp +++ b/lib/Archive/ArchiveReader.cpp @@ -205,7 +205,7 @@ Archive::parseMemberHeader(const char*& At, const char* End, std::string* error) } // Determine if this is a bitcode file - switch (sys::IdentifyFileType(At, 4)) { + switch (sys::identifyFileType(StringRef(At, 4))) { case sys::Bitcode_FileType: flags |= ArchiveMember::BitcodeFlag; break; |