missed a header :(
authorChris Lattner <sabre@nondot.org>
Sun, 4 Apr 2010 23:36:52 +0000 (23:36 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 4 Apr 2010 23:36:52 +0000 (23:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100370 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/AsmPrinter.h

index 2ad1e1833a03491f18bf68aae421d47f2fda1b5f..06c2f7546a8eb32cdc16ba116871d0871bed6100 100644 (file)
@@ -351,6 +351,16 @@ namespace llvm {
     void EmitReference(const MCSymbol *Sym, unsigned Encoding) const;
     void EmitReference(const GlobalValue *GV, unsigned Encoding) const;
     
+    /// EmitSectionOffset - Emit the 4-byte offset of Label from the start of
+    /// its section.  This can be done with a special directive if the target
+    /// supports it (e.g. cygwin) or by emitting it as an offset from a label at
+    /// the start of the section.
+    ///
+    /// SectionLabel is a temporary label emitted at the start of the section
+    /// that Label lives in.
+    void EmitSectionOffset(const MCSymbol *Label,
+                           const MCSymbol *SectionLabel) const;
+    
     
     //===------------------------------------------------------------------===//
     // Inline Asm Support