diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-12 15:04:59 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-12 15:04:59 +0000 |
commit | 26ace5720d471dcff6ab6495f5898597cda54496 (patch) | |
tree | e4750398e2052bfc2a340a133533bd236d05de86 /lib/Support/Path.cpp | |
parent | fa2bbb31fae64bc8cc3dc3736f5465d3ddba1704 (diff) | |
download | llvm-26ace5720d471dcff6ab6495f5898597cda54496.tar.gz llvm-26ace5720d471dcff6ab6495f5898597cda54496.tar.bz2 llvm-26ace5720d471dcff6ab6495f5898597cda54496.tar.xz |
Remove Path::hasMagicNumber.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183838 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Path.cpp')
-rw-r--r-- | lib/Support/Path.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/Support/Path.cpp b/lib/Support/Path.cpp index 1bae78137b..d47d23f57b 100644 --- a/lib/Support/Path.cpp +++ b/lib/Support/Path.cpp @@ -85,13 +85,6 @@ Path::isBitcodeFile() const { return type == fs::file_magic::bitcode; } -bool Path::hasMagicNumber(StringRef Magic) const { - std::string actualMagic; - if (getMagicNumber(actualMagic, static_cast<unsigned>(Magic.size()))) - return Magic == actualMagic; - return false; -} - // Include the truly platform-specific parts of this class. #if defined(LLVM_ON_UNIX) #include "Unix/Path.inc" |