Allow the use of an alternate symbol for calculating a function's size.
[oota-llvm.git] / include / llvm / CodeGen / AsmPrinter.h
index 8e64ee1c470ff9f3512338718846d710d024c801..56a87f139a21404b202575423758cf83d4bb4104 100644 (file)
@@ -88,6 +88,11 @@ namespace llvm {
     ///
     MCSymbol *CurrentFnSym;
 
+    /// The symbol used to represent the start of the current function for the
+    /// purpose of calculating its size (e.g. using the .size directive). By
+    /// default, this is equal to CurrentFnSym.
+    MCSymbol *CurrentFnSymForSize;
+
   private:
     // GCMetadataPrinters - The garbage collection metadata printer table.
     void *GCMetadataPrinters;  // Really a DenseMap.