mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Revert debug info compression support.
To support compression for debug_line and debug_frame a different approach is required. To simplify review, revert the old implementation and XFAIL the test case. New implementation to follow shortly. Reverts r205059 and r204958. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205989 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -52,7 +52,6 @@ public:
|
||||
enum FragmentType {
|
||||
FT_Align,
|
||||
FT_Data,
|
||||
FT_Compressed,
|
||||
FT_CompactEncodedInst,
|
||||
FT_Fill,
|
||||
FT_Relaxable,
|
||||
@@ -162,7 +161,6 @@ public:
|
||||
return false;
|
||||
case MCFragment::FT_Relaxable:
|
||||
case MCFragment::FT_CompactEncodedInst:
|
||||
case MCFragment::FT_Compressed:
|
||||
case MCFragment::FT_Data:
|
||||
return true;
|
||||
}
|
||||
@@ -197,8 +195,7 @@ public:
|
||||
|
||||
static bool classof(const MCFragment *F) {
|
||||
MCFragment::FragmentType Kind = F->getKind();
|
||||
return Kind == MCFragment::FT_Relaxable || Kind == MCFragment::FT_Data ||
|
||||
Kind == MCFragment::FT_Compressed;
|
||||
return Kind == MCFragment::FT_Relaxable || Kind == MCFragment::FT_Data;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -217,11 +214,6 @@ class MCDataFragment : public MCEncodedFragmentWithFixups {
|
||||
|
||||
/// Fixups - The list of fixups in this fragment.
|
||||
SmallVector<MCFixup, 4> Fixups;
|
||||
protected:
|
||||
MCDataFragment(MCFragment::FragmentType FType, MCSectionData *SD = 0)
|
||||
: MCEncodedFragmentWithFixups(FType, SD), HasInstructions(false),
|
||||
AlignToBundleEnd(false) {}
|
||||
|
||||
public:
|
||||
MCDataFragment(MCSectionData *SD = 0)
|
||||
: MCEncodedFragmentWithFixups(FT_Data, SD),
|
||||
@@ -255,21 +247,10 @@ public:
|
||||
const_fixup_iterator fixup_end() const override {return Fixups.end();}
|
||||
|
||||
static bool classof(const MCFragment *F) {
|
||||
return F->getKind() == MCFragment::FT_Data ||
|
||||
F->getKind() == MCFragment::FT_Compressed;
|
||||
return F->getKind() == MCFragment::FT_Data;
|
||||
}
|
||||
};
|
||||
|
||||
class MCCompressedFragment: public MCDataFragment {
|
||||
mutable SmallVector<char, 32> CompressedContents;
|
||||
public:
|
||||
MCCompressedFragment(MCSectionData *SD = nullptr)
|
||||
: MCDataFragment(FT_Compressed, SD) {}
|
||||
const SmallVectorImpl<char> &getCompressedContents() const;
|
||||
using MCDataFragment::getContents;
|
||||
SmallVectorImpl<char> &getContents() override;
|
||||
};
|
||||
|
||||
/// This is a compact (memory-size-wise) fragment for holding an encoded
|
||||
/// instruction (non-relaxable) that has no fixups registered. When applicable,
|
||||
/// it can be used instead of MCDataFragment and lead to lower memory
|
||||
|
Reference in New Issue
Block a user