Rename two IRReader.h functions to indicate that they return a Module

that loads its contents lazily from bitcode.  I think these are the
only remaining mis-named functions.

llvm-svn: 94840
This commit is contained in:
Jeffrey Yasskin 2010-01-29 21:11:04 +00:00
parent bb651db10d
commit 6838a27b47

View File

@ -30,7 +30,7 @@ namespace llvm {
/// which does lazy deserialization of function bodies. Otherwise, attempt to
/// parse it as LLVM Assembly and return a fully populated Module. This
/// function *always* takes ownership of the given MemoryBuffer.
inline Module *getIRModule(MemoryBuffer *Buffer,
inline Module *getLazyIRModule(MemoryBuffer *Buffer,
SMDiagnostic &Err,
LLVMContext &Context) {
if (isBitcode((const unsigned char *)Buffer->getBufferStart(),
@ -53,7 +53,7 @@ namespace llvm {
/// for it which does lazy deserialization of function bodies. Otherwise,
/// attempt to parse it as LLVM Assembly and return a fully populated
/// Module.
inline Module *getIRFileModule(const std::string &Filename,
inline Module *getLazyIRFileModule(const std::string &Filename,
SMDiagnostic &Err,
LLVMContext &Context) {
std::string ErrMsg;
@ -64,7 +64,7 @@ namespace llvm {
return 0;
}
return getIRModule(F, Err, Context);
return getLazyIRModule(F, Err, Context);
}
/// If the given MemoryBuffer holds a bitcode image, return a Module