projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eda20f9
)
Handle headers for compressed bytecode files
author
Misha Brukman
<brukman+llvm@gmail.com>
Mon, 8 Nov 2004 22:03:32 +0000
(22:03 +0000)
committer
Misha Brukman
<brukman+llvm@gmail.com>
Mon, 8 Nov 2004 22:03:32 +0000
(22:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17634
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/FileUtilities.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/FileUtilities.cpp
b/lib/Support/FileUtilities.cpp
index 3f2f97b22e8c04b757ff70b5369adfdf1942f1f2..51f49772b1c4d18b51f77066ffc9db804403b5b8 100644
(file)
--- a/
lib/Support/FileUtilities.cpp
+++ b/
lib/Support/FileUtilities.cpp
@@
-52,7
+52,7
@@
bool llvm::IsArchive(const std::string &FN) {
bool llvm::IsBytecode(const std::string &FN) {
// Inspect the beginning of the file to see if it contains the LLVM
// bytecode format magic string.
- return CheckMagic
(FN, "llvm
");
+ return CheckMagic
(FN, "llvm") || CheckMagic(FN, "llvc
");
}
/// IsSharedObject - Returns trus IFF the file named FN appears to be a shared