aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/AsmPrinter/DwarfException.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-11-17 01:23:53 +0000
committerBill Wendling <isanbard@gmail.com>2009-11-17 01:23:53 +0000
commit7378b1bd00033d8be64d388d60a562027cbf953a (patch)
treec53dc4558a72c46bcda0d14ecc51ad636f33ef1a /lib/CodeGen/AsmPrinter/DwarfException.h
parenta0a95a3c1cea79757854cf39ba07734b39e2b0e9 (diff)
downloadexternal_llvm-7378b1bd00033d8be64d388d60a562027cbf953a.zip
external_llvm-7378b1bd00033d8be64d388d60a562027cbf953a.tar.gz
external_llvm-7378b1bd00033d8be64d388d60a562027cbf953a.tar.bz2
Refactor the code that creates the "dot-label" difference. This may be used in
more than one place. No intended functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89024 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfException.h')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfException.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfException.h b/lib/CodeGen/AsmPrinter/DwarfException.h
index 391cf05..9e63216 100644
--- a/lib/CodeGen/AsmPrinter/DwarfException.h
+++ b/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.