aboutsummaryrefslogtreecommitdiff
path: root/lib/Frontend
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-11-23 09:19:42 +0000
committerChris Lattner <sabre@nondot.org>2010-11-23 09:19:42 +0000
commit75dfb65c38d51772df9a00ce2d2feeefd55667ad (patch)
treee7cbb532a7424c29765febd45a7f941f38d6a248 /lib/Frontend
parent681c74afe6a81161aa13291c6c114e5240b23865 (diff)
tidy up. Split FileManager::getBufferForFile into
two copies, since they are fundamentally different operations and the StringRef one should go away (it shouldn't be part of FileManager at least). Remove some dead arguments. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120013 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend')
-rw-r--r--lib/Frontend/ASTUnit.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Frontend/ASTUnit.cpp b/lib/Frontend/ASTUnit.cpp
index 34d2fec3cb..b55001e2b1 100644
--- a/lib/Frontend/ASTUnit.cpp
+++ b/lib/Frontend/ASTUnit.cpp
@@ -456,10 +456,9 @@ const std::string &ASTUnit::getASTFileName() {
}
llvm::MemoryBuffer *ASTUnit::getBufferForFile(llvm::StringRef Filename,
- std::string *ErrorStr,
- int64_t FileSize) {
+ std::string *ErrorStr) {
assert(FileMgr);
- return FileMgr->getBufferForFile(Filename, ErrorStr, FileSize);
+ return FileMgr->getBufferForFile(Filename, ErrorStr);
}
/// \brief Configure the diagnostics object for use with ASTUnit.