projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pass a StringRef to sys::identifyFileType.
[oota-llvm.git]
/
include
/
llvm
/
Support
/
PathV1.h
diff --git
a/include/llvm/Support/PathV1.h
b/include/llvm/Support/PathV1.h
index af46cc11bae766ac0c1a6ed3c508e81b20a4406c..d4bb58af06607470fc8ccc42d2b3e0bf48fb142b 100644
(file)
--- 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.
/// 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) {
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
}
/// This function can be used to copy the file specified by Src to the