diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-08-31 08:09:28 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-08-31 08:09:28 +0000 |
commit | 821e3334ed3390d931f497300e6a5f1dc21bcfb3 (patch) | |
tree | 6ce6d23d121ee064f82737807150ca127e97d574 /include/llvm/MC | |
parent | e2ace509fc1205bed97a5114b13534610d4dbf5e (diff) | |
download | llvm-821e3334ed3390d931f497300e6a5f1dc21bcfb3.tar.gz llvm-821e3334ed3390d931f497300e6a5f1dc21bcfb3.tar.bz2 llvm-821e3334ed3390d931f497300e6a5f1dc21bcfb3.tar.xz |
llvm-mc: Pass values to MCStreamer as MCExprs, not MCValues.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80578 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC')
-rw-r--r-- | include/llvm/MC/MCStreamer.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/MC/MCStreamer.h b/include/llvm/MC/MCStreamer.h index 8183722fea..224fbf4ff8 100644 --- a/include/llvm/MC/MCStreamer.h +++ b/include/llvm/MC/MCStreamer.h @@ -21,10 +21,10 @@ namespace llvm { class MCAsmInfo; class MCCodeEmitter; class MCContext; + class MCExpr; class MCInst; class MCSection; class MCSymbol; - class MCValue; class StringRef; class raw_ostream; @@ -116,7 +116,7 @@ namespace llvm { /// /// @param Symbol - The symbol being assigned to. /// @param Value - The value for the symbol. - virtual void EmitAssignment(MCSymbol *Symbol, const MCValue &Value) = 0; + virtual void EmitAssignment(MCSymbol *Symbol, const MCExpr *Value) = 0; /// EmitSymbolAttribute - Add the given @param Attribute to @param Symbol. virtual void EmitSymbolAttribute(MCSymbol *Symbol, @@ -166,7 +166,7 @@ namespace llvm { /// @param Value - The value to emit. /// @param Size - The size of the integer (in bytes) to emit. This must /// match a native machine width. - virtual void EmitValue(const MCValue &Value, unsigned Size) = 0; + virtual void EmitValue(const MCExpr *Value, unsigned Size) = 0; /// EmitValueToAlignment - Emit some number of copies of @param Value until /// the byte alignment @param ByteAlignment is reached. @@ -197,7 +197,7 @@ namespace llvm { /// @param Offset - The offset to reach. This may be an expression, but the /// expression must be associated with the current section. /// @param Value - The value to use when filling bytes. - virtual void EmitValueToOffset(const MCValue &Offset, + virtual void EmitValueToOffset(const MCExpr *Offset, unsigned char Value = 0) = 0; /// @} |