aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-06-23 23:39:15 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-06-23 23:39:15 +0000
commit6285bcfe8b52802c9ac5893b9a412d26d41fa7b4 (patch)
treeba22b60f39eb3da331d790e91adf88c6cdb60c8e /include
parent4b92609fcbedfcddce2ed0c5cee84d95cb2d136c (diff)
downloadexternal_llvm-6285bcfe8b52802c9ac5893b9a412d26d41fa7b4.zip
external_llvm-6285bcfe8b52802c9ac5893b9a412d26d41fa7b4.tar.gz
external_llvm-6285bcfe8b52802c9ac5893b9a412d26d41fa7b4.tar.bz2
Update for MCImm -> MCValue rename.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74024 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/MC/MCContext.h8
-rw-r--r--include/llvm/MC/MCStreamer.h11
2 files changed, 11 insertions, 8 deletions
diff --git a/include/llvm/MC/MCContext.h b/include/llvm/MC/MCContext.h
index f5e75eb..78943fc 100644
--- a/include/llvm/MC/MCContext.h
+++ b/include/llvm/MC/MCContext.h
@@ -16,7 +16,7 @@
namespace llvm {
class MCAtom;
- class MCImm;
+ class MCValue;
class MCSection;
class MCSymbol;
@@ -32,7 +32,7 @@ namespace llvm {
StringMap<MCSymbol*> Symbols;
/// SymbolValues - Bindings of symbols to values.
- DenseMap<MCSymbol*, MCImm> SymbolValues;
+ DenseMap<MCSymbol*, MCValue> SymbolValues;
/// Allocator - Allocator object used for creating machine code objects.
///
@@ -73,11 +73,11 @@ namespace llvm {
/// SetSymbolValue - Set the value binding for @param Symbol to @param
/// Value.
- void SetSymbolValue(MCSymbol *Symbol, const MCImm &Value);
+ void SetSymbolValue(MCSymbol *Symbol, const MCValue &Value);
/// GetSymbolValue - Return the current value for @param Symbol, or null if
/// none exists.
- const MCImm *GetSymbolValue(MCSymbol *Symbol) const;
+ const MCValue *GetSymbolValue(MCSymbol *Symbol) const;
void *Allocate(unsigned Size, unsigned Align = 8) {
return Allocator.Allocate(Size, Align);
diff --git a/include/llvm/MC/MCStreamer.h b/include/llvm/MC/MCStreamer.h
index ce495dc..2fc9d68 100644
--- a/include/llvm/MC/MCStreamer.h
+++ b/include/llvm/MC/MCStreamer.h
@@ -13,7 +13,7 @@
namespace llvm {
class MCAtom;
class MCContext;
- class MCImm;
+ class MCValue;
class MCInst;
class MCSection;
class MCSymbol;
@@ -59,7 +59,7 @@ namespace llvm {
//
// FIXME: What to do about the current section? Should we get rid of the
// symbol section in the constructor and initialize it here?
- virtual void EmitLabel(MCSymbol *Symbol);
+ virtual void EmitLabel(MCSymbol *Symbol) = 0;
/// EmitAssignment - Emit an assignment of @param Value to @param Symbol.
///
@@ -75,7 +75,7 @@ namespace llvm {
/// @param MakeAbsolute - If true, then the symbol should be given the
/// absolute value of @param Value, even if @param Value would be
/// relocatable expression. This corresponds to the ".set" directive.
- virtual void EmitAssignment(MCSymbol *Symbol, const MCImm &Value,
+ virtual void EmitAssignment(MCSymbol *Symbol, const MCValue &Value,
bool MakeAbsolute = false) = 0;
/// EmitSymbolAttribute - Add the given @param Attribute to @param Symbol.
@@ -103,11 +103,14 @@ 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 MCImm &Value, unsigned Size) = 0;
+ virtual void EmitValue(const MCValue &Value, unsigned Size) = 0;
/// EmitInstruction - Emit the given @param Instruction into the current
/// section.
virtual void EmitInstruction(const MCInst &Inst) = 0;
+
+ /// Finish - Finish emission of machine code and flush any output.
+ virtual void Finish() = 0;
};
/// createAsmStreamer - Create a machine code streamer which will print out