diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-11-17 01:23:53 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-11-17 01:23:53 +0000 |
commit | bc0020174b3d27def5290480b8e82e16c70d9e61 (patch) | |
tree | 69246090c7e37643399de80ed6b545fd6f567bb4 /llvm/lib/CodeGen/AsmPrinter/DwarfException.h | |
parent | b0bc559b1963e9dc95091baa53ccedbddb02368c (diff) | |
download | bcm5719-llvm-bc0020174b3d27def5290480b8e82e16c70d9e61.tar.gz bcm5719-llvm-bc0020174b3d27def5290480b8e82e16c70d9e61.zip |
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
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfException.h')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfException.h | 6 |
1 files changed, 6 insertions, 0 deletions
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<unsigned> &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. |