Use the StringRef version of identifyFileType.

llvm-svn: 183670
This commit is contained in:
Rafael Espindola 2013-06-10 15:36:21 +00:00
parent 1dc43065a7
commit 808dfba985
1 changed files with 1 additions and 2 deletions

View File

@ -86,8 +86,7 @@ public:
std::vector<std::unique_ptr<File> > &result) const {
using llvm::object::ELFType;
llvm::sys::LLVMFileType fileType =
llvm::sys::IdentifyFileType(mb->getBufferStart(),
static_cast<unsigned>(mb->getBufferSize()));
llvm::sys::identifyFileType(mb->getBuffer());
std::size_t MaxAlignment =
1ULL << llvm::countTrailingZeros(uintptr_t(mb->getBufferStart()));