mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-13 08:35:46 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94840 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
963e84f9fc
commit
e0638cb56c
@ -30,7 +30,7 @@ namespace llvm {
|
|||||||
/// which does lazy deserialization of function bodies. Otherwise, attempt to
|
/// which does lazy deserialization of function bodies. Otherwise, attempt to
|
||||||
/// parse it as LLVM Assembly and return a fully populated Module. This
|
/// parse it as LLVM Assembly and return a fully populated Module. This
|
||||||
/// function *always* takes ownership of the given MemoryBuffer.
|
/// function *always* takes ownership of the given MemoryBuffer.
|
||||||
inline Module *getIRModule(MemoryBuffer *Buffer,
|
inline Module *getLazyIRModule(MemoryBuffer *Buffer,
|
||||||
SMDiagnostic &Err,
|
SMDiagnostic &Err,
|
||||||
LLVMContext &Context) {
|
LLVMContext &Context) {
|
||||||
if (isBitcode((const unsigned char *)Buffer->getBufferStart(),
|
if (isBitcode((const unsigned char *)Buffer->getBufferStart(),
|
||||||
@ -53,7 +53,7 @@ namespace llvm {
|
|||||||
/// for it which does lazy deserialization of function bodies. Otherwise,
|
/// for it which does lazy deserialization of function bodies. Otherwise,
|
||||||
/// attempt to parse it as LLVM Assembly and return a fully populated
|
/// attempt to parse it as LLVM Assembly and return a fully populated
|
||||||
/// Module.
|
/// Module.
|
||||||
inline Module *getIRFileModule(const std::string &Filename,
|
inline Module *getLazyIRFileModule(const std::string &Filename,
|
||||||
SMDiagnostic &Err,
|
SMDiagnostic &Err,
|
||||||
LLVMContext &Context) {
|
LLVMContext &Context) {
|
||||||
std::string ErrMsg;
|
std::string ErrMsg;
|
||||||
@ -64,7 +64,7 @@ namespace llvm {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return getIRModule(F, Err, Context);
|
return getLazyIRModule(F, Err, Context);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// If the given MemoryBuffer holds a bitcode image, return a Module
|
/// If the given MemoryBuffer holds a bitcode image, return a Module
|
||||||
|
Loading…
x
Reference in New Issue
Block a user