From 0d50c7620d92762eaa5c9dedd07c94f5a6a19935 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 8 Mar 2010 23:58:37 +0000 Subject: move .set generation out of DwarfPrinter into AsmPrinter and MCize it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98010 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/AsmPrinter.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h index 8ade1bd..6187447 100644 --- a/include/llvm/CodeGen/AsmPrinter.h +++ b/include/llvm/CodeGen/AsmPrinter.h @@ -136,6 +136,7 @@ namespace llvm { mutable const MachineInstr *LastMI; mutable const Function *LastFn; mutable unsigned Counter; + mutable unsigned SetCounter; // Private state for processDebugLoc() mutable const MDNode *PrevDLT; @@ -275,6 +276,13 @@ namespace llvm { /// EmitInt64 - Emit a long long directive and value. /// void EmitInt64(uint64_t Value) const; + + + /// EmitLabelDifference - Emit something like ".long Hi-Lo" where the size + /// in bytes of the directive is specified by Size and Hi/Lo specify the + /// labels. This implicitly uses .set if it is available. + void EmitLabelDifference(const MCSymbol *Hi, const MCSymbol *Lo, + unsigned Size) const; //===------------------------------------------------------------------===// -- cgit v1.1