diff options
author | Jeffrey Yasskin <jyasskin@google.com> | 2010-01-29 21:11:04 +0000 |
---|---|---|
committer | Jeffrey Yasskin <jyasskin@google.com> | 2010-01-29 21:11:04 +0000 |
commit | e0638cb56c972f34931de2c69895bc0c54440447 (patch) | |
tree | c2c133e3ef5fdfa50ef786f17108b3927b72bd9b | |
parent | 963e84f9fcbbfadf69f26f1604e8a588081a6d88 (diff) | |
download | external_llvm-e0638cb56c972f34931de2c69895bc0c54440447.tar.gz external_llvm-e0638cb56c972f34931de2c69895bc0c54440447.tar.bz2 external_llvm-e0638cb56c972f34931de2c69895bc0c54440447.zip |
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
-rw-r--r-- | include/llvm/Support/IRReader.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/llvm/Support/IRReader.h b/include/llvm/Support/IRReader.h index 50de73803c..66314e057e 100644 --- a/include/llvm/Support/IRReader.h +++ b/include/llvm/Support/IRReader.h @@ -30,9 +30,9 @@ 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, - SMDiagnostic &Err, - LLVMContext &Context) { + inline Module *getLazyIRModule(MemoryBuffer *Buffer, + SMDiagnostic &Err, + LLVMContext &Context) { if (isBitcode((const unsigned char *)Buffer->getBufferStart(), (const unsigned char *)Buffer->getBufferEnd())) { std::string ErrMsg; @@ -53,9 +53,9 @@ 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, - SMDiagnostic &Err, - LLVMContext &Context) { + inline Module *getLazyIRFileModule(const std::string &Filename, + SMDiagnostic &Err, + LLVMContext &Context) { std::string ErrMsg; MemoryBuffer *F = MemoryBuffer::getFileOrSTDIN(Filename.c_str(), &ErrMsg); if (F == 0) { @@ -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 |