Inline Path::isBitcodeFile into only use and remove it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183840 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2013-06-12 15:13:57 +00:00
parent 2a4005688c
commit c3907f387f
3 changed files with 4 additions and 17 deletions

View File

@@ -77,14 +77,6 @@ Path::appendSuffix(StringRef suffix) {
}
}
bool
Path::isBitcodeFile() const {
fs::file_magic type;
if (fs::identify_magic(str(), type))
return false;
return type == fs::file_magic::bitcode;
}
// Include the truly platform-specific parts of this class.
#if defined(LLVM_ON_UNIX)
#include "Unix/Path.inc"