From bc0020174b3d27def5290480b8e82e16c70d9e61 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Tue, 17 Nov 2009 01:23:53 +0000 Subject: Refactor the code that creates the "dot-label" difference. This may be used in more than one place. No intended functionality change. llvm-svn: 89024 --- llvm/lib/CodeGen/AsmPrinter/DwarfException.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfException.h') diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfException.h b/llvm/lib/CodeGen/AsmPrinter/DwarfException.h index 391cf05541e..9e632165e17 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfException.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfException.h @@ -25,6 +25,7 @@ namespace llvm { struct LandingPadInfo; class MachineModuleInfo; class MCAsmInfo; +class MCExpr; class Timer; class raw_ostream; @@ -172,6 +173,11 @@ class VISIBILITY_HIDDEN DwarfException : public Dwarf { const SmallVectorImpl &FirstActions); void EmitExceptionTable(); + /// CreateLabelDiff - Emit a label and subtract it from the expression we + /// already have. This is equivalent to emitting "foo - .", but we have to + /// emit the label for "." directly. + const MCExpr *CreateLabelDiff(const MCExpr *ExprRef, const char *LabelName, + unsigned Index); public: //===--------------------------------------------------------------------===// // Main entry points. -- cgit v1.2.3