summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Reader/ReaderWrappers.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Remove vim settings from source code; people should use llvm/utils/vim/vimrcMisha Brukman2005-05-051-1/+0
| | | | llvm-svn: 21704
* Remove trailing whitespaceMisha Brukman2005-04-211-15/+15
| | | | llvm-svn: 21417
* This mega patch converts us from using Function::a{iterator|begin|end} toChris Lattner2005-03-151-4/+4
| | | | | | | | using Function::arg_{iterator|begin|end}. Likewise Module::g* -> Module::global_*. This patch is contributed by Gabor Greif, thanks! llvm-svn: 20597
* Make the check for global variables the same as the one for functions. InReid Spencer2005-02-131-1/+1
| | | | | | | | both cases they are looking for non-external variables/functions that do not have internal linkage. Using "!isExternal()" is a little more understandable than "hasInitializer()" llvm-svn: 20155
* Do not put internal symbols into the symbol table. This shrinks the symbolChris Lattner2005-02-131-21/+11
| | | | | | | | table for archives in common cases, and prevents trying to resolve a external reference with an internal reference. This shrinks the libpython.a symbol table from 126302 to 19770 bytes. llvm-svn: 20151
* For PR351:Reid Spencer2004-12-211-10/+7
| | | | | | | Remove unix specific code (use of errno and read) from the reader. Thanks to Jeff Cohen for pointing this out. llvm-svn: 19081
* Remove the #include of llvm/Config/unistd.h as it is no longer needed.Reid Spencer2004-12-201-1/+0
| | | | llvm-svn: 19067
* For PR351:Reid Spencer2004-12-131-20/+6
| | | | | | | | Use sys::MappedFile instead of ReadFileIntoAddressSpace and UnmapFileFromAddressSpace. sys::MappedFile has the nice property that it cleans up after itself so exception handling can be removed. llvm-svn: 18902
* Path::get -> Path::toStringReid Spencer2004-12-111-1/+2
| | | | llvm-svn: 18785
* Fix a comment to imply the correct semantics.Reid Spencer2004-11-221-1/+1
| | | | llvm-svn: 18097
* Per code review:\Reid Spencer2004-11-161-8/+12
| | | | | | | * Get rid of memory leaks on exception \ * Provide better comments of how the memory handling works llvm-svn: 17876
* Changes necessary to enable linking of archives without LLVM symbol tables.Reid Spencer2004-11-151-7/+8
| | | | llvm-svn: 17811
* Add wrappers to get defined symbols from bytecodeReid Spencer2004-11-141-19/+48
| | | | llvm-svn: 17770
* Implement the GetBytecodeSymbols interface function to extract just theReid Spencer2004-11-061-0/+39
| | | | | | externally visible defined symbols from a bytecode file. llvm-svn: 17503
* Unbreak doxygen, according to Reid.Misha Brukman2004-09-121-2/+4
| | | | llvm-svn: 16298
* Fix code spacing/alignmentMisha Brukman2004-09-121-6/+4
| | | | llvm-svn: 16297
* Change interface to use correct typedef so it will always compile.Reid Spencer2004-09-111-1/+1
| | | | llvm-svn: 16281
* Changes For Bug 352Reid Spencer2004-09-011-3/+3
| | | | | | | | Move include/Config and include/Support into include/llvm/Config, include/llvm/ADT and include/llvm/Support. From here on out, all LLVM public header files must be under include/llvm/. llvm-svn: 16137
* Add a wrapper for extraction of the dependent libraries from a bytecodeReid Spencer2004-08-241-0/+14
| | | | | | file. llvm-svn: 16037
* Two Changes:Reid Spencer2004-08-211-14/+18
| | | | | | | | - Pass the output stream to the analyzer so it can write its output there directly instead of buffering it. - Don't pass a boolean to ParseBytecode because its not needed any more. llvm-svn: 15983
* Turn a use of intptr_t into a reinterpret_cast<uint64_t> instead to getReid Spencer2004-08-041-1/+1
| | | | | | rid of compilation warnings on some platforms. llvm-svn: 15512
* Finalize bytecode dumping. The "handleFinish" method was getting calledReid Spencer2004-07-051-3/+3
| | | | | | | | too soon so the function data was not getting dumped (it was generated after the call handleFinish). Also cleaned up the output format for proper indentation. llvm-svn: 14627
* Remove tabs. Move function declaration to Reader.h where it belongs.Reid Spencer2004-07-041-8/+4
| | | | llvm-svn: 14601
* Adjustments to allow Bytecode Reading to support the BytecodeHandlerReid Spencer2004-06-291-15/+68
| | | | | | interface which is called by the reader if a BytecodeHandler is provided. llvm-svn: 14493
* Use the new FileUtilities.h API for mapping a file into an addressChris Lattner2004-05-281-18/+6
| | | | | | space llvm-svn: 13864
* Use new getFileSize function instead of sys/stat.h directly.Chris Lattner2003-12-301-7/+4
| | | | llvm-svn: 10650
* Factor FDHandle out of the bytecode reader into the FileUtilities.h supportChris Lattner2003-12-291-16/+4
| | | | | | routines. llvm-svn: 10642
* Throw better error messages, by calling strerror(errno) when weBrian Gaeke2003-12-121-4/+9
| | | | | | get an error inside the bytecode reader. llvm-svn: 10415
* Fine grainify namespacification, #include file that defines the interface!Chris Lattner2003-11-191-9/+11
| | | | llvm-svn: 10081
* Put all LLVM code into the llvm namespace, as per bug 109.Brian Gaeke2003-11-111-2/+5
| | | | llvm-svn: 9903
* Added LLVM project notice to the top of every C++ source file.John Criswell2003-10-201-0/+7
| | | | | | Header files will be on the way. llvm-svn: 9298
* * New revised variable argument handling supportChris Lattner2003-10-181-8/+89
| | | | | | | * More dense bytecode encoding for varargs calls (like printf) * Eliminated the extremely old bytecode format. rev #0 is now 1.0 llvm-svn: 9220
* Add separator between different types of readers.Misha Brukman2003-10-161-0/+1
| | | | llvm-svn: 9183
* Destroy allocated resources on exception.Misha Brukman2003-10-081-3/+13
| | | | llvm-svn: 8969
* All of our supported operating systems (so far) and FreeBSD technicallyBrian Gaeke2003-10-061-0/+1
| | | | | | want you to include <sys/stat.h> for fstat(), struct stat, and friends. llvm-svn: 8887
* Rename AbstractModuleProvider -> ModuleProvider, to match the header file name,Chris Lattner2003-10-041-6/+4
| | | | | | | and because, while the class used by the interface is abstract, the actual concept is not. llvm-svn: 8850
* Do not leak the ModuleProvider if releaseModule() throws.Chris Lattner2003-10-041-11/+6
| | | | llvm-svn: 8847
* 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. llvm-svn: 8709
* Fix alignment problemChris Lattner2003-09-241-1/+1
| | | | llvm-svn: 8707
* Actually assign the string correctly through the std::string pointer.Misha Brukman2003-09-241-2/+2
| | | | llvm-svn: 8704
* * 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 llvm-svn: 8701
* 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. llvm-svn: 8693
* * 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 llvm-svn: 8682
* * Constantify arguments to copy functionMisha Brukman2003-09-231-8/+4
| | | | | | * Stop using a #define, make it an inline if statement llvm-svn: 8678
* Added file header comment.Misha Brukman2003-09-221-0/+7
| | | | llvm-svn: 8675
* * 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 llvm-svn: 8671
OpenPOWER on IntegriCloud