summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/Module.cpp
Commit message (Collapse)AuthorAgeFilesLines
* For PR411:Reid Spencer2007-02-051-2/+2
| | | | | | | | Adjust to changes in Module interface: getMainFunction() -> getFunction("main") getNamedFunction(X) -> getFunction(X) llvm-svn: 33922
* For PR411:Reid Spencer2007-02-051-94/+18
| | | | | | | | | | This patch replaces the SymbolTable class with ValueSymbolTable which does not support types planes. This means that all symbol names in LLVM must now be unique. The patch addresses the necessary changes to deal with this and removes code no longer needed as a result. This completes the bulk of the changes for this PR. Some cleanup patches will follow. llvm-svn: 33918
* For PR1163:Reid Spencer2007-02-041-0/+17
| | | | | | | Make the Module's dependent library use a std::vector instead of SetVector adjust #includes in .cpp files because SetVector.h is no longer included. llvm-svn: 33855
* For PR1136: Rename GlobalVariable::isExternal as isDeclaration to avoidReid Spencer2007-01-301-1/+1
| | | | | | confusion with external linkage types. llvm-svn: 33663
* For PR761:Reid Spencer2007-01-261-20/+0
| | | | | | | Remove the setEndianess and setPointerSize methods. These are now handled via the setDataLayout method. llvm-svn: 33527
* Change the interface to Module::getOrInsertFunction to be easier to use,Chris Lattner2007-01-071-12/+24
| | | | | | to resolve PR1088, and to help PR411. llvm-svn: 32988
* For PR411:Reid Spencer2007-01-061-12/+15
| | | | | | | | | Take an incremental step towards type plane elimination. This change separates types from values in the symbol tables by finally making use of the TypeSymbolTable class. This yields more natural interfaces for dealing with types and unclutters the SymbolTable class. llvm-svn: 32956
* For PR950:Reid Spencer2006-12-311-7/+8
| | | | | | Change signed integer type names to unsigned equivalents. llvm-svn: 32780
* Removing even more <iostream> includes.Bill Wendling2006-12-071-2/+1
| | | | llvm-svn: 32320
* Make the getNamedFunction and getNamedGlobal methods be const. They don'tReid Spencer2006-05-311-8/+8
| | | | | | change the module in any way and we should enforce that. llvm-svn: 28588
* Fix some think-o's in my last commit. Thanks to Chris for pointing them out.Owen Anderson2006-05-181-16/+18
| | | | llvm-svn: 28380
* Change Module to use TargetData-compatible strings internally.Owen Anderson2006-05-181-1/+60
| | | | | | This is part of the on-going work on PR 761. llvm-svn: 28379
* add a new helper method.Chris Lattner2006-03-081-0/+14
| | | | llvm-svn: 26618
* Change inline asms to be uniqued like constants, not embedded in a Module.Chris Lattner2006-01-251-17/+0
| | | | llvm-svn: 25610
* Initial checkin of the InlineAsm classChris Lattner2006-01-241-1/+18
| | | | llvm-svn: 25570
* Add a flag to Module::getGlobalVariable to allow it to return vars withChris Lattner2005-12-051-7/+7
| | | | | | | | internal linkage. Patch provided by Evan Jones, thanks! llvm-svn: 24604
* Remove trailing whitespaceMisha Brukman2005-04-211-5/+5
| | | | llvm-svn: 21427
* This mega patch converts us from using Function::a{iterator|begin|end} toChris Lattner2005-03-151-1/+1
| | | | | | | | using Function::arg_{iterator|begin|end}. Likewise Module::g* -> Module::global_*. This patch is contributed by Gabor Greif, thanks! llvm-svn: 20597
* Improve conformance with the Misha spelling benchmark suiteChris Lattner2005-01-301-2/+2
| | | | llvm-svn: 19930
* Adjust to ilist changes.Chris Lattner2005-01-291-2/+2
| | | | llvm-svn: 19923
* Okay, the list of link-time passes wasn't such a hot idea. Its prone toReid Spencer2004-09-141-7/+0
| | | | | | | error. We'll strategize on this when we have multiple front ends to deal with. For now llvm-ld just runs a standard set of transforms. llvm-svn: 16333
* Add support for the link-time pass list to Modules.Reid Spencer2004-09-131-0/+6
| | | | llvm-svn: 16321
* Changes For Bug 352Reid Spencer2004-09-011-2/+2
| | | | | | | | 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
* bug 263:Reid Spencer2004-07-251-0/+1
| | | | | | Ensure the list of libraries is cleared. llvm-svn: 15212
* bug 122:Reid Spencer2004-07-171-45/+0
| | | | | | - Module doesn't need to manage ConstantPointerRefs any more. llvm-svn: 14931
* Replace use of defunct Type::setName method with SymbolTable::insert.Reid Spencer2004-07-101-1/+1
| | | | | | Patch found and provided by Vladimir Merzliakov. Thanks Vladimir! llvm-svn: 14732
* - #include <iostream> since its not in Value.h any more.Reid Spencer2004-07-041-0/+1
| | | | llvm-svn: 14617
* Convert to SymbolTable's new lookup and iteration interfaces.Reid Spencer2004-05-251-7/+6
| | | | llvm-svn: 13751
* I'm allergic to the word `stuff'.Misha Brukman2004-04-211-1/+1
| | | | llvm-svn: 13096
* Remove Module::mutateConstantPointerRef, which is now thankfully dead!Chris Lattner2004-03-081-25/+0
| | | | | | | This is one small step towards the complete obliteration of ConstantPointerRef's entirely!! Woot! llvm-svn: 12216
* Add some comments, add new getGlobalVariable methodChris Lattner2003-12-311-1/+43
| | | | llvm-svn: 10671
* * Make Module::getTypeName constChris Lattner2003-12-311-16/+23
| | | | | | | * Add new Module::getTypeByName method * Group methods in Module.cpp better llvm-svn: 10668
* Finegrainify namespacificationChris Lattner2003-11-211-8/+8
| | | | llvm-svn: 10131
* Put all LLVM code into the llvm namespace, as per bug 109.Brian Gaeke2003-11-111-0/+4
| | | | llvm-svn: 9903
* Make code gcc 3.4 cleanChris Lattner2003-11-051-2/+2
| | | | llvm-svn: 9719
* 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
* Regularize header file commentsChris Lattner2003-10-131-1/+1
| | | | llvm-svn: 9071
* Fix spelling/grammar.Misha Brukman2003-10-101-1/+1
| | | | llvm-svn: 9023
* Implement new methodChris Lattner2003-08-311-0/+24
| | | | llvm-svn: 8238
* Support new 'any' support for pointer size and endiannessChris Lattner2003-08-241-1/+1
| | | | llvm-svn: 8119
* Make Module::getNamedFunction prefer non-external functions if there is more ↵Chris Lattner2003-07-231-2/+6
| | | | | | | | than one function of the same name llvm-svn: 7274
* Fix bug: Assembler/2003-05-15-AssemblerProblem.llxChris Lattner2003-05-151-2/+13
| | | | llvm-svn: 6234
* Add support for tracking whether a module is 64/32 bit and big/little endianChris Lattner2003-04-221-1/+2
| | | | | | Also add a moduleID field which can be used for diagnostics llvm-svn: 5834
* Add new linkage types to support a real frontendChris Lattner2003-04-161-3/+4
| | | | llvm-svn: 5786
* - Eliminated the deferred symbol table stuff in Module & Function, it reallyChris Lattner2002-11-201-35/+12
| | | | | | wasn't an optimization and it was causing lots of bugs. llvm-svn: 4779
* Add a new Module::getNamedFunction methodChris Lattner2002-11-191-3/+12
| | | | llvm-svn: 4758
* Add a method "getMainFunction()" that efficiently locates 'main' in a moduleChris Lattner2002-11-081-0/+52
| | | | llvm-svn: 4629
* - Eliminate SymbolTable::ParentSymTab, ST::localLookup, andChris Lattner2002-10-151-1/+1
| | | | | | Function::ParentSymTab. These aren't needed at all. llvm-svn: 4186
* Enable "garbage detection" of LLVM objects. Now users should be obnoxiousChris Lattner2002-09-081-3/+11
| | | | | | warnings. If they accidentally leak LLVM Value's. llvm-svn: 3620
* - ConstantPointerRefs are now automatically removed from the module tableChris Lattner2002-08-181-13/+19
| | | | | | | | | when they are destroyed, which makes Constant::destroyConstant an actually useful external interface. Expose these methods publicly. - Implement destroyConstant on ConstPointerNull so that destroyConstant can be used on any derived type constant safely. llvm-svn: 3379
OpenPOWER on IntegriCloud