summaryrefslogtreecommitdiff
path: root/lib/Support/Path.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-12 15:13:57 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-12 15:13:57 +0000
commitc3907f387f0b2ec20913c6f869131c5ffd9f08df (patch)
tree372585b0521e4aa69b1ea388d0ee0e92821484ad /lib/Support/Path.cpp
parent2a4005688c05e26439ce83c0b1da482e3c346ba9 (diff)
downloadllvm-c3907f387f0b2ec20913c6f869131c5ffd9f08df.tar.gz
llvm-c3907f387f0b2ec20913c6f869131c5ffd9f08df.tar.bz2
llvm-c3907f387f0b2ec20913c6f869131c5ffd9f08df.tar.xz
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
Diffstat (limited to 'lib/Support/Path.cpp')
-rw-r--r--lib/Support/Path.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/Support/Path.cpp b/lib/Support/Path.cpp
index d47d23f57b..7ddaf1e89e 100644
--- a/lib/Support/Path.cpp
+++ b/lib/Support/Path.cpp
@@ -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"