summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Reader/ReaderWrappers.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix long standing issue with propagating error message back to caller. ThisReid Spencer2006-12-151-5/+5
| | | | | | | | has been a problem since exceptions were removed from the BytecodeReader. Error messages are now captured from ModuleProvider::releaseModule as well as after a longjmp. llvm-svn: 32608
* Removed more <iostream> includesBill Wendling2006-12-071-5/+3
| | | | llvm-svn: 32321
* Fix massive resource leaks in the bytecode reader. Reading a bytecode fileChris Lattner2006-10-121-39/+40
| | | | | | | | | with ParseBytecodeFile used to leak both a ModuleProvider (and related bytecode parser stuff attached to it) AND a file descriptor, which was never closed. This prevented gccld/llvm-ld/llvm-link from linking together apps with more that ~252 .bc files on darwin. llvm-svn: 30912
* For PR797:Reid Spencer2006-08-251-103/+134
| | | | | | | Remove exception throwing/handling from lib/Bytecode, and adjust its users to compensate for changes in the interface. llvm-svn: 29875
* For PR797:Reid Spencer2006-08-221-8/+16
| | | | | | | | Adjust the use of MappedFile to its new non-throwing interface. We just propagate the exceptions if an error occurs. This will get cleaned up later, incrementally. llvm-svn: 29820
* Change the ModuleProvider interface to not throw exceptions.Chris Lattner2006-07-061-14/+12
| | | | llvm-svn: 29024
* For PR787:Reid Spencer2006-06-071-0/+2
| | | | | | | | | | | | Provide new llvm::sys::Program facilities for converting the stdout and stdin to binary mode. There is no standard way to do this and the available mechanisms are platform specific. Adjust the bytecode reader and writer to use these methods when their input is stdin or output is stdout. THis avoids the problem with \n writing CRLF to a bytecode file on windows. Patch Contributed by Michael Smith. llvm-svn: 28722
* I bet pinski knows why g++ accepts this stuffDuraid Madina2005-12-261-0/+2
| | | | llvm-svn: 25022
* When a function takes a variable number of pointer arguments, with a zeroJeff Cohen2005-10-231-3/+3
| | | | | | | | | | | | | pointer marking the end of the list, the zero *must* be cast to the pointer type. An un-cast zero is a 32-bit int, and at least on x86_64, gcc will not extend the zero to 64 bits, thus allowing the upper 32 bits to be random junk. The new END_WITH_NULL macro may be used to annotate a such a function so that GCC (version 4 or newer) will detect the use of un-casted zero at compile time. llvm-svn: 23888
* Eliminate all remaining tabs and trailing spaces.Jeff Cohen2005-07-271-10/+10
| | | | llvm-svn: 22523
* If we support structs as va_list, we must pass pointers to them to va_copyAndrew Lenharth2005-06-221-4/+8
| | | | | | See last commit for LangRef, this implements it on all targets. llvm-svn: 22273
* va_end fixAndrew Lenharth2005-06-191-0/+1
| | | | llvm-svn: 22262
* core changes for varargsAndrew Lenharth2005-06-181-3/+98
| | | | llvm-svn: 22254
* Remove code for conversion from old style va_args. Preparing the way forAndrew Lenharth2005-06-081-76/+3
| | | | | | returning to the old style :) llvm-svn: 22199
* 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
OpenPOWER on IntegriCloud