[llvm-commits] [PATCH] MCFragments Clean Up
pdox at google.com
Thu Oct 14 11:48:29 PDT 2010
This patch against rev 116493 does the following:
* Adds four virtual methods to MCFragment:
ComputeSize() - Compute the size of this fragment
WriteData() - Write the data of this fragment
AssertLegalInVirtualSection() - Assert that this fragment is legal
in a virtual section
dump_kind_data() - Dump the kind-specific data for this fragment
* Moves the implementation of these actions from MCAssembler.cpp to a
new file "MCFragment.cpp"
* As a benefit, most of the switches on MCFragment::Kind and many of
the MCFragment casts go away.
* Introduces the PendingLayout flag to make it possible to reuse the MCAsmLayout
getter functions (i.e. getFragmentAddress() and getFragmentOffset())
while inside of
Thanks. Please let me know what you think.
- David M
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 29796 bytes
Desc: not available
More information about the llvm-commits