MCAssembler: Switch MCFillFragment to only taking constant values. Symbolic expressions can always be emitted as data + fixups.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96092 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar
2010-02-13 09:28:32 +00:00
parent 45f4874611
commit a4766d7af9
2 changed files with 9 additions and 51 deletions

View File

@@ -244,7 +244,7 @@ public:
class MCFillFragment : public MCFragment {
/// Value - Value to use for filling bytes.
const MCExpr *Value;
int64_t Value;
/// ValueSize - The size (in bytes) of \arg Value to use when filling.
unsigned ValueSize;
@@ -253,10 +253,10 @@ class MCFillFragment : public MCFragment {
uint64_t Count;
public:
MCFillFragment(const MCExpr &_Value, unsigned _ValueSize, uint64_t _Count,
MCFillFragment(int64_t _Value, unsigned _ValueSize, uint64_t _Count,
MCSectionData *SD = 0)
: MCFragment(FT_Fill, SD),
Value(&_Value), ValueSize(_ValueSize), Count(_Count) {}
Value(_Value), ValueSize(_ValueSize), Count(_Count) {}
/// @name Accessors
/// @{
@@ -265,7 +265,7 @@ public:
return ValueSize * Count;
}
const MCExpr &getValue() const { return *Value; }
int64_t getValue() const { return Value; }
unsigned getValueSize() const { return ValueSize; }