s/Bitstream/MemoryBuffer/g

Swift SVN r7770
This commit is contained in:
Adrian Prantl
2013-08-30 00:22:27 +00:00
parent 9bc6220ee1
commit 1da2dc442e
3 changed files with 15 additions and 14 deletions

View File

@@ -90,7 +90,7 @@ Module *SerializedModuleLoader::loadModule(SourceLoc importLoc,
llvm::OwningPtr<llvm::MemoryBuffer> inputFile;
// First see if we find it in the registered bitstreams.
if (!Bitstreams.empty()) {
if (!MemoryBuffers.empty()) {
// FIXME: Right now this works only with fully-qualified absolute
// pathnames, which is incidentally what LLDB uses. Fix this to
// support suffix matching and a search path.
@@ -98,8 +98,8 @@ Module *SerializedModuleLoader::loadModule(SourceLoc importLoc,
for (auto el : path)
llvm::sys::path::append(spath, el.first.str());
auto bs = Bitstreams.find(spath.str());
if (bs != Bitstreams.end())
auto bs = MemoryBuffers.find(spath.str());
if (bs != MemoryBuffers.end())
inputFile.reset(bs->second.take());
}