aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Bytecode/Reader/ReaderWrappers.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Do not leak the ModuleProvider if releaseModule() throws.Chris Lattner2003-10-041-11/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8847 91177308-0d34-0410-b5e6-96231b3b80d8
* Define the instance variable Buffer, not the automatic variable Buffer.Chris Lattner2003-09-251-3/+2
| | | | | | | This was causing us to munmap random stuff, which is obviously bad. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8709 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix alignment problemChris Lattner2003-09-241-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8707 91177308-0d34-0410-b5e6-96231b3b80d8
* Actually assign the string correctly through the std::string pointer.Misha Brukman2003-09-241-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8704 91177308-0d34-0410-b5e6-96231b3b80d8
* * Eliminate BytecodeBufferReader::Length member variableMisha Brukman2003-09-241-26/+7
| | | | | | | | * Kill unused ALIN_PTRS #define * Set the error string if user passed it in to be compatible with former API git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8701 91177308-0d34-0410-b5e6-96231b3b80d8
* Added code that ensures that we pass the beginning of the data buffer toJohn Criswell2003-09-231-1/+1
| | | | | | | the parsing routines regardless of whether the buffer is re-aligned or not. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8693 91177308-0d34-0410-b5e6-96231b3b80d8
* * Group class definitions & implementations togetherMisha Brukman2003-09-231-58/+110
| | | | | | | | | * Make sure we align the buffer we're given * Do not let exceptions propagate when the caller asks for a Module* * Add doxygenified comments to wrapper functions git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8682 91177308-0d34-0410-b5e6-96231b3b80d8
* * Constantify arguments to copy functionMisha Brukman2003-09-231-8/+4
| | | | | | | * Stop using a #define, make it an inline if statement git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8678 91177308-0d34-0410-b5e6-96231b3b80d8
* Added file header comment.Misha Brukman2003-09-221-0/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8675 91177308-0d34-0410-b5e6-96231b3b80d8
* * Cleaned up code:Misha Brukman2003-09-221-0/+170
- no more passing around a string pointer to set errors - no more returning booleans and checking for errors, we use C++ exceptions * Broke functionality into 2 new classes, one reads from file, one from a stream * Implemented lazy function streaming - the parser can read in a function at-a-time git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8671 91177308-0d34-0410-b5e6-96231b3b80d8