aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineModuleInfoImpls.cpp
AgeCommit message (Collapse)AuthorFilesLines
2017-10-26[MachineModuleInfoImpls] Replace qsort with array_pod_sortMandeep Singh Grang1-10/+4
Summary: This seems to be the only place in llvm we directly call qsort. We can replace this with a call to array_pod_sort. Also minor cleanup of the sorting function. Reviewers: bkramer, Eugene.Zelenko, rafael Reviewed By: bkramer Subscribers: efriedma, llvm-commits Differential Revision: https://reviews.llvm.org/D39214 llvm-svn: 316671
2017-10-10[CodeGen] Fix some Clang-tidy modernize and Include What You Use warnings; ↵Eugene Zelenko1-3/+7
other minor fixes (NFC). llvm-svn: 315380
2017-06-16[WebAssembly] Use __stack_pointer global when writing wasm binarySam Clegg1-1/+0
This ensures that symbolic relocations are generated for stack pointer manipulations. These relocations are of type R_WEBASSEMBLY_GLOBAL_INDEX_LEB. This change also adds support for reading relocations of this type in WasmObjectFile.cpp. Since its a globally imported symbol this does mean that the get_global/set_global instruction won't be valid until the objects are linked that global used in no longer an imported global. Differential Revision: https://reviews.llvm.org/D34172 llvm-svn: 305616
2017-02-24[WebAssembly] Add support for using a wasm global for the stack pointer.Dan Gohman1-0/+1
This replaces the __stack_pointer variable which was allocated in linear memory. llvm-svn: 296201
2015-04-07Clear the stub map in getSortedStubs.Rafael Espindola1-5/+4
This makes sure they are only output once (and frees a bit of memory). llvm-svn: 234313
2012-09-26Rename virtual table anchors from Anchor() to anchor() for consistency with ↵Craig Topper1-2/+2
the rest of the tree. llvm-svn: 164666
2010-03-10Add a bit along with the MCSymbols stored in the MachineModuleInfo maps thatBill Wendling1-5/+4
indicates that an MCSymbol is external or not. (It's true if it's external.) This will be used to specify the correct information to add to non-lazy pointers. That will be explained further when this bit is used. llvm-svn: 98199
2010-02-15Preliminary patch to improve dwarf EH generation - Hooks to return ↵Anton Korobeynikov1-5/+6
Personality / FDE / LSDA / TType encoding depending on target / options (e.g. code model / relocation model) - MCIzation of Dwarf EH printer to use encoding information - Stub generation for ELF target (needed for indirect references) - Some other small changes here and there llvm-svn: 96285
2010-02-03make MachineModuleInfoMachO hold non-const MCSymbol*'s insteadChris Lattner1-4/+4
of const ones. non-const ones aren't very useful, because you can't even, say, emit them. llvm-svn: 95205
2009-09-16Don't sort the vector when it is empty. This should fix some expensive checkingBenjamin Kramer1-1/+2
failures. llvm-svn: 82040
2009-09-16add a new MachineModuleInfoMachO class, which is the per-moduleChris Lattner1-0/+44
stuff common across all macho targets. llvm-svn: 82018