mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 15:17:25 +00:00
Pass a StringRef to sys::identifyFileType.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183669 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user