[llvm-commits] CVS: llvm/lib/System/Win32/Path.inc
Chris Lattner
sabre at nondot.org
Sat May 5 22:32:44 PDT 2007
Changes in directory llvm/lib/System/Win32:
Path.inc updated: 1.65 -> 1.66
---
Log message:
pull some win32 code into common code, add bitcode identification support.
---
Diffs of the changes: (+0 -15)
Path.inc | 15 ---------------
1 files changed, 15 deletions(-)
Index: llvm/lib/System/Win32/Path.inc
diff -u llvm/lib/System/Win32/Path.inc:1.65 llvm/lib/System/Win32/Path.inc:1.66
--- llvm/lib/System/Win32/Path.inc:1.65 Sat Apr 7 15:47:27 2007
+++ llvm/lib/System/Win32/Path.inc Sun May 6 00:32:21 2007
@@ -247,21 +247,6 @@
return path.substr(slash, dot - slash);
}
-bool Path::hasMagicNumber(const std::string &Magic) const {
- std::string actualMagic;
- if (getMagicNumber(actualMagic, Magic.size()))
- return Magic == actualMagic;
- return false;
-}
-
-bool
-Path::isBytecodeFile() const {
- std::string actualMagic;
- if (!getMagicNumber(actualMagic, 4))
- return false;
- return actualMagic == "llvc" || actualMagic == "llvm";
-}
-
bool
Path::exists() const {
DWORD attr = GetFileAttributes(path.c_str());
More information about the llvm-commits
mailing list