summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-11-23 06:09:51 +0000
committerChris Lattner <sabre@nondot.org>2010-11-23 06:09:51 +0000
commit9f9bd8e4af8c5e7ae02eb5de418a49a6fdafb3f1 (patch)
tree9d68657d1c5f2a039c37268f3e58f71aba23605c /include
parent0e11dfc4a6f7e3a3d3bc0365e1da43bc2fa0aac2 (diff)
downloadllvm-9f9bd8e4af8c5e7ae02eb5de418a49a6fdafb3f1.tar.gz
llvm-9f9bd8e4af8c5e7ae02eb5de418a49a6fdafb3f1.tar.bz2
llvm-9f9bd8e4af8c5e7ae02eb5de418a49a6fdafb3f1.tar.xz
Revert functionality doug added in r98575 that was never
documented and only used by some clang stuff I just removed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120002 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/MemoryBuffer.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/include/llvm/Support/MemoryBuffer.h b/include/llvm/Support/MemoryBuffer.h
index eb3e25d3db..41d4f88bfa 100644
--- a/include/llvm/Support/MemoryBuffer.h
+++ b/include/llvm/Support/MemoryBuffer.h
@@ -17,7 +17,6 @@
#include "llvm/ADT/StringRef.h"
#include "llvm/System/DataTypes.h"
#include <string>
-#include <sys/stat.h>
namespace llvm {
@@ -63,12 +62,10 @@ public:
/// it has the specified size.
static MemoryBuffer *getFile(StringRef Filename,
std::string *ErrStr = 0,
- int64_t FileSize = -1,
- struct stat *FileInfo = 0);
+ int64_t FileSize = -1);
static MemoryBuffer *getFile(const char *Filename,
std::string *ErrStr = 0,
- int64_t FileSize = -1,
- struct stat *FileInfo = 0);
+ int64_t FileSize = -1);
/// getMemBuffer - Open the specified memory range as a MemoryBuffer. Note
/// that InputData must be null terminated.
@@ -104,12 +101,10 @@ public:
/// in *ErrStr with a reason.
static MemoryBuffer *getFileOrSTDIN(StringRef Filename,
std::string *ErrStr = 0,
- int64_t FileSize = -1,
- struct stat *FileInfo = 0);
+ int64_t FileSize = -1);
static MemoryBuffer *getFileOrSTDIN(const char *Filename,
std::string *ErrStr = 0,
- int64_t FileSize = -1,
- struct stat *FileInfo = 0);
+ int64_t FileSize = -1);
};
} // end namespace llvm