MC: Add default value for AddrSpace argument to EmitValue.
authorDaniel Dunbar <daniel@zuster.org>
Fri, 6 Aug 2010 21:24:05 +0000 (21:24 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 6 Aug 2010 21:24:05 +0000 (21:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110475 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCStreamer.h

index cb36564a87825aff8cf8d8de6c6dee52367de006..5767a94a6bc3ce97d5bc063a2a00c4a0427956db 100644 (file)
@@ -217,12 +217,13 @@ namespace llvm {
     /// @param Size - The size of the integer (in bytes) to emit. This must
     /// match a native machine width.
     virtual void EmitValue(const MCExpr *Value, unsigned Size,
-                           unsigned AddrSpace) = 0;
+                           unsigned AddrSpace = 0) = 0;
 
     /// EmitIntValue - Special case of EmitValue that avoids the client having
     /// to pass in a MCExpr for constant integers.
-    virtual void EmitIntValue(uint64_t Value, unsigned Size,unsigned AddrSpace);
-
+    virtual void EmitIntValue(uint64_t Value, unsigned Size,
+                              unsigned AddrSpace = 0);
+    
     /// EmitSymbolValue - Special case of EmitValue that avoids the client
     /// having to pass in a MCExpr for MCSymbols.
     virtual void EmitSymbolValue(const MCSymbol *Sym, unsigned Size,