mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Simplify the code a bit: MCRelaxableFragment doesn't need a separate getInstSize
method because getContents().size() already covers it. So computeFragmentSize can use the generic MCEncodedFragment interface when querying both Data and Relaxable fragments for contents sizes. No change in functionality git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171903 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -235,7 +235,6 @@ public:
|
||||
virtual SmallVectorImpl<char> &getContents() { return Contents; }
|
||||
virtual const SmallVectorImpl<char> &getContents() const { return Contents; }
|
||||
|
||||
unsigned getInstSize() const { return Contents.size(); }
|
||||
const MCInst &getInst() const { return Inst; }
|
||||
void setInst(const MCInst& Value) { Inst = Value; }
|
||||
|
||||
|
Reference in New Issue
Block a user