summaryrefslogtreecommitdiffstats
path: root/llvm/tools
Commit message (Collapse)AuthorAgeFilesLines
* there is now no reason to link in TARGETS_TO_BUILD since we listChris Lattner2010-07-201-1/+1
| | | | | | | | | arm explicitly. X86 and ARM are the only two targets that support disassembly, so our explicit list is enough. These other targets weren't getting pulled in anyway though, since there were no references to their symbols. llvm-svn: 108934
* fix edis to only try to link in the x86 parts if the x86 backend isChris Lattner2010-07-201-1/+11
| | | | | | enabled. Add direct ARM support. llvm-svn: 108933
* Fix edis makefileDouglas Gregor2010-07-201-0/+1
| | | | llvm-svn: 108931
* fix DISABLE_EDISChris Lattner2010-07-201-2/+2
| | | | llvm-svn: 108925
* this logic is handled by tools/makefile.Chris Lattner2010-07-201-9/+2
| | | | llvm-svn: 108919
* edis needs to link in mcdisassembler.Chris Lattner2010-07-201-1/+1
| | | | llvm-svn: 108876
* update cmake.Chris Lattner2010-07-201-13/+0
| | | | llvm-svn: 108875
* edinfo doesn't need to be built here.Chris Lattner2010-07-202-9/+0
| | | | llvm-svn: 108873
* start straightening out libedis's dependencies and make it fitChris Lattner2010-07-2013-1930/+146
| | | | | | | | | | | | | | | | better in the llvm world. Among other things, this changes: 1. The guts of libedis are now moved into lib/MC/MCDisassembler 2. llvm-mc now depends on lib/MC/MCDisassembler, not tools/edis, so edis and mc don't have to be built in series. 3. lib/MC/MCDisassembler no longer depends on the C api, the C API depends on it. 4. Various code cleanup changes. There is still a lot to be done to make edis fit with the llvm design, but this is an incremental step in the right direction. llvm-svn: 108869
* Speculatively revert r108813, in an attempt to get the self-host buildbots ↵Owen Anderson2010-07-208-37/+34
| | | | | | | | working again. I don't see why this patch would cause them to fail the way they are, but none of the other intervening patches seem likely either. llvm-svn: 108818
* Reapply r108794, a fix for the failing test from last time.Owen Anderson2010-07-208-34/+37
| | | | llvm-svn: 108813
* Revert r108794, "Separate PassInfo into two classes: a constructor-freeDaniel Dunbar2010-07-208-37/+34
| | | | | | | superclass (StaticPassInfo) and a constructor-ful subclass (PassInfo).", it is breaking teh everything. llvm-svn: 108805
* Separate PassInfo into two classes: a constructor-free superclass ↵Owen Anderson2010-07-208-34/+37
| | | | | | (StaticPassInfo) and a constructor-ful subclass (PassInfo). llvm-svn: 108794
* llvmc: Add a new option type (switch_list).Mikhail Glushenkov2010-07-191-1/+8
| | | | llvm-svn: 108673
* Target: Give the TargetAsmParser access to the TargetMachine.Daniel Dunbar2010-07-192-2/+3
| | | | | | - Unfortunate, but necessary for now to handle subtarget instruction matching. Eventually we should factor out the lower level target machine information so we don't need to do this. llvm-svn: 108664
* edis: Save the TargetMachine in the EDDisassembler object.Daniel Dunbar2010-07-192-5/+7
| | | | llvm-svn: 108663
* MC: Move several clients to using AsmParser constructor function.Daniel Dunbar2010-07-182-10/+12
| | | | llvm-svn: 108645
* llvm-mc: Fix llvm-mc -as-lex.Daniel Dunbar2010-07-181-2/+2
| | | | llvm-svn: 108644
* Fix what seems like a clear buffer overflow, noticed by cppcheck.Duncan Sands2010-07-171-2/+2
| | | | llvm-svn: 108629
* Make llvm-bcanalyzer print out the full enum name for all metadataDan Gohman2010-07-161-4/+4
| | | | | | code ids, not just some of them. llvm-svn: 108543
* build/Darwin: Add an LLVM_LTO_VERSION_OFFSET make variable to allow offsettingDaniel Dunbar2010-07-161-1/+9
| | | | | | the libLTO library version from the actual build version. llvm-svn: 108495
* Remove some broken code to check the DISABLE_EDIS flag (edis is now in theBob Wilson2010-07-142-5/+2
| | | | | | | | DIRS list, so it does no good to filter it from PARALLEL_DIRS), and replace it with a check to disable building the shared library version of edis when the flag is set. Disabling it entirely does not work because MC uses it now. llvm-svn: 108367
* Convert some tab stops into spaces.Duncan Sands2010-07-124-5/+5
| | | | llvm-svn: 108130
* Implement the "linker_private_weak" linkage type. This will be used forBill Wendling2010-07-011-1/+2
| | | | | | | | | | | | | | | | | | | | | | | Objective-C metadata types which should be marked as "weak", but which the linker will remove upon final linkage. However, this linkage isn't specific to Objective-C. For example, the "objc_msgSend_fixup_alloc" symbol is defined like this: .globl l_objc_msgSend_fixup_alloc .weak_definition l_objc_msgSend_fixup_alloc .section __DATA, __objc_msgrefs, coalesced .align 3 l_objc_msgSend_fixup_alloc: .quad _objc_msgSend_fixup .quad L_OBJC_METH_VAR_NAME_1 This is different from the "linker_private" linkage type, because it can't have the metadata defined with ".weak_definition". Currently only supported on Darwin platforms. llvm-svn: 107433
* MC: Pass the target instance to the AsmParser constructor.Daniel Dunbar2010-07-012-2/+2
| | | | llvm-svn: 107426
* Preserve debug info for only extracted symbols.Devang Patel2010-07-011-0/+1
| | | | llvm-svn: 107417
* Make -filelist work with -linker=c++.Mikhail Glushenkov2010-07-011-4/+8
| | | | llvm-svn: 107362
* Revert r107205 and r107207.Bill Wendling2010-06-291-2/+1
| | | | llvm-svn: 107215
* Introducing the "linker_weak" linkage type. This will be used for Objective-CBill Wendling2010-06-291-1/+2
| | | | | | | | | | | | | | | | | | | metadata types which should be marked as "weak", but which the linker will remove upon final linkage. For example, the "objc_msgSend_fixup_alloc" symbol is defined like this: .globl l_objc_msgSend_fixup_alloc .weak_definition l_objc_msgSend_fixup_alloc .section __DATA, __objc_msgrefs, coalesced .align 3 l_objc_msgSend_fixup_alloc: .quad _objc_msgSend_fixup .quad L_OBJC_METH_VAR_NAME_1 This is different from the "linker_private" linkage type, because it can't have the metadata defined with ".weak_definition". llvm-svn: 107205
* Remove variables that are written by not read.Duncan Sands2010-06-291-6/+0
| | | | llvm-svn: 107126
* Use ValueMap instead of DenseMap.Devang Patel2010-06-244-41/+41
| | | | | | The ValueMapper used by various cloning utility maps MDNodes also. llvm-svn: 106706
* Add an extra-library-path option to the plugin. This is used to supportRafael Espindola2010-06-231-0/+13
| | | | | | | | | | | | having a library both as bitcode and native code. We want to use the bitcode first, but if codegen produces new undefined references we have to use the native code to satisfy those references. Gold has no notion of bitcode and native search directories, so instead it has an API where the plugin can instruct it to look for the libraries it is passing to it. This patch uses that API. llvm-svn: 106674
* add_input_file and add_input_library now take const arguments, remove theRafael Espindola2010-06-211-2/+2
| | | | | | const_cast. llvm-svn: 106410
* Save more temps with -save-temps.Rafael Espindola2010-06-211-3/+7
| | | | llvm-svn: 106409
* Add a pass-through option to the plugin. The use case for this option is toRafael Espindola2010-06-181-0/+26
| | | | | | | | ask the linker to take another look into some library or object. The case when one might want to do this is when codegen introduces a new undefined reference. The canonical example is libgcc. llvm-svn: 106303
* Don't produce output only if *all* files are unused.Rafael Espindola2010-06-141-7/+7
| | | | llvm-svn: 105962
* llvm-mc: Don't set NO_INSTALL on llvm-mc.Daniel Dunbar2010-06-111-1/+0
| | | | llvm-svn: 105837
* Change another reference to the "indirect callgraph node" toDuncan Sands2010-06-091-1/+1
| | | | | | refer to the "external node" instead. llvm-svn: 105731
* Output "external node" rather than "Indirect CallGraph node" when printingDuncan Sands2010-06-091-1/+1
| | | | | | | | callgraph SCC's. This makes it match what the node itself would print. Also, "indirect callgraph node" doesn't make sense - it has nothing particularly to do with indirect calls. llvm-svn: 105730
* Plug a leak in the non-error case by removing one level of indirection.Nick Lewycky2010-06-071-6/+4
| | | | llvm-svn: 105556
* Run dead type elimination after dead argument elimination.Dan Gohman2010-06-071-1/+2
| | | | llvm-svn: 105552
* Use ->isVoidTy().Dan Gohman2010-06-073-5/+4
| | | | llvm-svn: 105550
* Misc cleanups to the gold plugin.Rafael Espindola2010-06-071-15/+16
| | | | llvm-svn: 105534
* No need to special-case structs here; structs are first-class now.Dan Gohman2010-06-051-3/+1
| | | | llvm-svn: 105513
* No need to special-case structs here; structs are first-class now.Dan Gohman2010-06-041-3/+1
| | | | llvm-svn: 105442
* Add a emit-llvm option to the plugin and make the path argument to ↵Rafael Espindola2010-06-031-2/+23
| | | | | | also-emit-llvm optional. llvm-svn: 105414
* Perfer !string.empty() over string != "".Nick Lewycky2010-06-031-2/+2
| | | | llvm-svn: 105397
* Whitespace cleanup.Nick Lewycky2010-06-031-5/+5
| | | | llvm-svn: 105395
* Don't preserve all symbols in a .so and instead trust gold to know what isRafael Espindola2010-06-031-12/+10
| | | | | | | needed. The result is that now we are able to drop unnecessary symbol from shared libraries. llvm-svn: 105389
* Eliminate some unnessary Path::exists() calls.Dan Gohman2010-05-273-19/+10
| | | | llvm-svn: 104888
OpenPOWER on IntegriCloud