aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCDisassembler/Disassembler.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-04-15 00:19:41 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-04-15 00:19:41 +0000
commit761af74802ee320d38430925eb9e30c4b1b0832c (patch)
tree5b51037b0501d95dfb2b2ff537c0038a8ad69e89 /llvm/lib/MC/MCDisassembler/Disassembler.cpp
parentf80abc060cb1277b719031acee38300227b16898 (diff)
downloadllvm-761af74802ee320d38430925eb9e30c4b1b0832c.zip
llvm-761af74802ee320d38430925eb9e30c4b1b0832c.tar.gz
llvm-761af74802ee320d38430925eb9e30c4b1b0832c.tar.bz2
[Allocator] Factor the Allocate template overloads into a base class
rather than defining them (differently!) in both allocators. This also serves as a basis for documenting and even enforcing some of the LLVM-style "allocator" concept methods which must exist with various signatures. I plan on extending and changing the signatures of these to further simplify our allocator model in subsequent commits, so I wanted to factor things as best as I could first. Notably, I'm working to add the 'Size' to the deallocation method of all allocators. This has several implications not the least of which are faster deallocation times on certain allocation libraries (tcmalloc). It also will allow the JIT allocator to fully model the existing allocation interfaces and allow sanitizer poisoning of deallocated regions. The list of advantages goes on. =] But by factoring things first I'll be able to make this easier by first introducing template helpers for the deallocation path. llvm-svn: 206225
Diffstat (limited to 'llvm/lib/MC/MCDisassembler/Disassembler.cpp')
0 files changed, 0 insertions, 0 deletions