summaryrefslogtreecommitdiff
path: root/include/llvm/Support/PathV1.h
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-10 15:27:39 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-10 15:27:39 +0000
commitf12745f7a7e68c05c89ebd515b9b4faedce37dd0 (patch)
treecddc0ab5c895c526e7a8113f5fb60ee5870fead6 /include/llvm/Support/PathV1.h
parentb972457783f6f992d8ee2fe392609fd4b0c5cf00 (diff)
downloadllvm-f12745f7a7e68c05c89ebd515b9b4faedce37dd0.tar.gz
llvm-f12745f7a7e68c05c89ebd515b9b4faedce37dd0.tar.bz2
llvm-f12745f7a7e68c05c89ebd515b9b4faedce37dd0.tar.xz
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 'include/llvm/Support/PathV1.h')
-rw-r--r--include/llvm/Support/PathV1.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Support/PathV1.h b/include/llvm/Support/PathV1.h
index af46cc11ba..d4bb58af06 100644
--- a/include/llvm/Support/PathV1.h
+++ b/include/llvm/Support/PathV1.h
@@ -725,9 +725,9 @@ namespace sys {
/// This utility function allows any memory block to be examined in order
/// to determine its file type.
- LLVMFileType identifyFileType(const char *Magic, unsigned Length);
+ LLVMFileType identifyFileType(StringRef Magic);
inline LLVMFileType IdentifyFileType(const char *Magic, unsigned Length) {
- return identifyFileType(Magic, Length);
+ return identifyFileType(StringRef(Magic, Length));
}
/// This function can be used to copy the file specified by Src to the