Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Change the ModuleProvider interface to not throw exceptions. | Chris Lattner | 2006-07-06 | 1 | -14/+12 |
| | | | | llvm-svn: 29024 | ||||
* | For PR787: | Reid Spencer | 2006-06-07 | 1 | -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 stuff | Duraid Madina | 2005-12-26 | 1 | -0/+2 |
| | | | | llvm-svn: 25022 | ||||
* | When a function takes a variable number of pointer arguments, with a zero | Jeff Cohen | 2005-10-23 | 1 | -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 Cohen | 2005-07-27 | 1 | -10/+10 |
| | | | | llvm-svn: 22523 | ||||
* | If we support structs as va_list, we must pass pointers to them to va_copy | Andrew Lenharth | 2005-06-22 | 1 | -4/+8 |
| | | | | | | See last commit for LangRef, this implements it on all targets. llvm-svn: 22273 | ||||
* | va_end fix | Andrew Lenharth | 2005-06-19 | 1 | -0/+1 |
| | | | | llvm-svn: 22262 | ||||
* | core changes for varargs | Andrew Lenharth | 2005-06-18 | 1 | -3/+98 |
| | | | | llvm-svn: 22254 | ||||
* | Remove code for conversion from old style va_args. Preparing the way for | Andrew Lenharth | 2005-06-08 | 1 | -76/+3 |
| | | | | | | returning to the old style :) llvm-svn: 22199 | ||||
* | Remove vim settings from source code; people should use llvm/utils/vim/vimrc | Misha Brukman | 2005-05-05 | 1 | -1/+0 |
| | | | | llvm-svn: 21704 | ||||
* | Remove trailing whitespace | Misha Brukman | 2005-04-21 | 1 | -15/+15 |
| | | | | llvm-svn: 21417 | ||||
* | This mega patch converts us from using Function::a{iterator|begin|end} to | Chris Lattner | 2005-03-15 | 1 | -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. In | Reid Spencer | 2005-02-13 | 1 | -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 symbol | Chris Lattner | 2005-02-13 | 1 | -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 Spencer | 2004-12-21 | 1 | -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 Spencer | 2004-12-20 | 1 | -1/+0 |
| | | | | llvm-svn: 19067 | ||||
* | For PR351: | Reid Spencer | 2004-12-13 | 1 | -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::toString | Reid Spencer | 2004-12-11 | 1 | -1/+2 |
| | | | | llvm-svn: 18785 | ||||
* | Fix a comment to imply the correct semantics. | Reid Spencer | 2004-11-22 | 1 | -1/+1 |
| | | | | llvm-svn: 18097 | ||||
* | Per code review:\ | Reid Spencer | 2004-11-16 | 1 | -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 Spencer | 2004-11-15 | 1 | -7/+8 |
| | | | | llvm-svn: 17811 | ||||
* | Add wrappers to get defined symbols from bytecode | Reid Spencer | 2004-11-14 | 1 | -19/+48 |
| | | | | llvm-svn: 17770 | ||||
* | Implement the GetBytecodeSymbols interface function to extract just the | Reid Spencer | 2004-11-06 | 1 | -0/+39 |
| | | | | | | externally visible defined symbols from a bytecode file. llvm-svn: 17503 | ||||
* | Unbreak doxygen, according to Reid. | Misha Brukman | 2004-09-12 | 1 | -2/+4 |
| | | | | llvm-svn: 16298 | ||||
* | Fix code spacing/alignment | Misha Brukman | 2004-09-12 | 1 | -6/+4 |
| | | | | llvm-svn: 16297 | ||||
* | Change interface to use correct typedef so it will always compile. | Reid Spencer | 2004-09-11 | 1 | -1/+1 |
| | | | | llvm-svn: 16281 | ||||
* | Changes For Bug 352 | Reid Spencer | 2004-09-01 | 1 | -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 bytecode | Reid Spencer | 2004-08-24 | 1 | -0/+14 |
| | | | | | | file. llvm-svn: 16037 | ||||
* | Two Changes: | Reid Spencer | 2004-08-21 | 1 | -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 get | Reid Spencer | 2004-08-04 | 1 | -1/+1 |
| | | | | | | rid of compilation warnings on some platforms. llvm-svn: 15512 | ||||
* | Finalize bytecode dumping. The "handleFinish" method was getting called | Reid Spencer | 2004-07-05 | 1 | -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 Spencer | 2004-07-04 | 1 | -8/+4 |
| | | | | llvm-svn: 14601 | ||||
* | Adjustments to allow Bytecode Reading to support the BytecodeHandler | Reid Spencer | 2004-06-29 | 1 | -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 address | Chris Lattner | 2004-05-28 | 1 | -18/+6 |
| | | | | | | space llvm-svn: 13864 | ||||
* | Use new getFileSize function instead of sys/stat.h directly. | Chris Lattner | 2003-12-30 | 1 | -7/+4 |
| | | | | llvm-svn: 10650 | ||||
* | Factor FDHandle out of the bytecode reader into the FileUtilities.h support | Chris Lattner | 2003-12-29 | 1 | -16/+4 |
| | | | | | | routines. llvm-svn: 10642 | ||||
* | Throw better error messages, by calling strerror(errno) when we | Brian Gaeke | 2003-12-12 | 1 | -4/+9 |
| | | | | | | get an error inside the bytecode reader. llvm-svn: 10415 | ||||
* | Fine grainify namespacification, #include file that defines the interface! | Chris Lattner | 2003-11-19 | 1 | -9/+11 |
| | | | | llvm-svn: 10081 | ||||
* | Put all LLVM code into the llvm namespace, as per bug 109. | Brian Gaeke | 2003-11-11 | 1 | -2/+5 |
| | | | | llvm-svn: 9903 | ||||
* | Added LLVM project notice to the top of every C++ source file. | John Criswell | 2003-10-20 | 1 | -0/+7 |
| | | | | | | Header files will be on the way. llvm-svn: 9298 | ||||
* | * New revised variable argument handling support | Chris Lattner | 2003-10-18 | 1 | -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 Brukman | 2003-10-16 | 1 | -0/+1 |
| | | | | llvm-svn: 9183 | ||||
* | Destroy allocated resources on exception. | Misha Brukman | 2003-10-08 | 1 | -3/+13 |
| | | | | llvm-svn: 8969 | ||||
* | All of our supported operating systems (so far) and FreeBSD technically | Brian Gaeke | 2003-10-06 | 1 | -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 Lattner | 2003-10-04 | 1 | -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 Lattner | 2003-10-04 | 1 | -11/+6 |
| | | | | llvm-svn: 8847 | ||||
* | Define the instance variable Buffer, not the automatic variable Buffer. | Chris Lattner | 2003-09-25 | 1 | -3/+2 |
| | | | | | | This was causing us to munmap random stuff, which is obviously bad. llvm-svn: 8709 | ||||
* | Fix alignment problem | Chris Lattner | 2003-09-24 | 1 | -1/+1 |
| | | | | llvm-svn: 8707 | ||||
* | Actually assign the string correctly through the std::string pointer. | Misha Brukman | 2003-09-24 | 1 | -2/+2 |
| | | | | llvm-svn: 8704 | ||||
* | * Eliminate BytecodeBufferReader::Length member variable | Misha Brukman | 2003-09-24 | 1 | -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 |