summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Path.cpp
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2007-07-06 13:38:17 +0000
committerGabor Greif <ggreif@gmail.com>2007-07-06 13:38:17 +0000
commit3d3fc3296e7684c0a1a13b948723802c0f5828c2 (patch)
tree0e48f111f767ef1c4092d0338c05681aad089f5a /llvm/lib/System/Path.cpp
parentfd404813e82d070c180fda38843c94438c9e9918 (diff)
downloadbcm5719-llvm-3d3fc3296e7684c0a1a13b948723802c0f5828c2.tar.gz
bcm5719-llvm-3d3fc3296e7684c0a1a13b948723802c0f5828c2.zip
eliminate residual cruft related to recognizing bytecode
files. bitcode files are the only LLVM format left. llvm-svn: 37945
Diffstat (limited to 'llvm/lib/System/Path.cpp')
-rw-r--r--llvm/lib/System/Path.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/llvm/lib/System/Path.cpp b/llvm/lib/System/Path.cpp
index fcdc5ff22cf..caf5789d7ef 100644
--- a/llvm/lib/System/Path.cpp
+++ b/llvm/lib/System/Path.cpp
@@ -47,14 +47,6 @@ sys::IdentifyFileType(const char*magic, unsigned length) {
if (magic[1] == 'C' && magic[2] == (char)0xC0 && magic[3] == (char)0xDE)
return Bitcode_FileType;
break;
- case 'l':
- if (magic[1] == 'l' && magic[2] == 'v') {
- if (magic[3] == 'c')
- return CompressedBytecode_FileType;
- else if (magic[3] == 'm')
- return Bytecode_FileType;
- }
- break;
case '!':
if (length >= 8)
if (memcmp(magic,"!<arch>\n",8) == 0)
@@ -165,14 +157,6 @@ std::string Path::GetDLLSuffix() {
}
bool
-Path::isBytecodeFile() const {
- std::string actualMagic;
- if (!getMagicNumber(actualMagic, 4))
- return false;
- return actualMagic == "llvc" || actualMagic == "llvm";
-}
-
-bool
Path::isBitcodeFile() const {
std::string actualMagic;
if (!getMagicNumber(actualMagic, 4))
OpenPOWER on IntegriCloud