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 /tools | |
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 'tools')
-rw-r--r-- | tools/lto/LTOModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lto/LTOModule.cpp b/tools/lto/LTOModule.cpp index 2c308b6..5fad01b 100644 --- a/tools/lto/LTOModule.cpp +++ b/tools/lto/LTOModule.cpp @@ -163,7 +163,7 @@ LTOModule::LTOModule(llvm::Module *m, llvm::TargetMachine *t) /// isBitcodeFile - Returns 'true' if the file (or memory contents) is LLVM /// bitcode. bool LTOModule::isBitcodeFile(const void *mem, size_t length) { - return llvm::sys::IdentifyFileType((const char*)mem, length) + return llvm::sys::identifyFileType(StringRef((const char*)mem, length)) == llvm::sys::Bitcode_FileType; } |