[llvm-commits] [llvm] r110475 - /llvm/trunk/include/llvm/MC/MCStreamer.h

Daniel Dunbar daniel at zuster.org
Fri Aug 6 14:24:05 PDT 2010


Author: ddunbar
Date: Fri Aug  6 16:24:05 2010
New Revision: 110475

URL: http://llvm.org/viewvc/llvm-project?rev=110475&view=rev
Log:
MC: Add default value for AddrSpace argument to EmitValue.

Modified:
    llvm/trunk/include/llvm/MC/MCStreamer.h

Modified: llvm/trunk/include/llvm/MC/MCStreamer.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCStreamer.h?rev=110475&r1=110474&r2=110475&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCStreamer.h (original)
+++ llvm/trunk/include/llvm/MC/MCStreamer.h Fri Aug  6 16:24:05 2010
@@ -217,12 +217,13 @@
     /// @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,





More information about the llvm-commits mailing list