diff options
author | Devang Patel <dpatel@apple.com> | 2010-09-02 16:43:44 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-09-02 16:43:44 +0000 |
commit | b1fcfbe89bd155fb88485b2a3a995adba3994003 (patch) | |
tree | b06316dac691b7b50d6919d74bef4ea1051b7cac /include | |
parent | 5a0fabae5a1792d20df23b6cbd573a9121637d12 (diff) | |
download | external_llvm-b1fcfbe89bd155fb88485b2a3a995adba3994003.zip external_llvm-b1fcfbe89bd155fb88485b2a3a995adba3994003.tar.gz external_llvm-b1fcfbe89bd155fb88485b2a3a995adba3994003.tar.bz2 |
Fix .debug_range for linux. Patch by Krister Wombell.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112830 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/AsmPrinter.h | 6 | ||||
-rw-r--r-- | include/llvm/MC/MCAsmInfo.h | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h index 62a18fe..b018603 100644 --- a/include/llvm/CodeGen/AsmPrinter.h +++ b/include/llvm/CodeGen/AsmPrinter.h @@ -328,6 +328,12 @@ namespace llvm { void EmitLabelOffsetDifference(const MCSymbol *Hi, uint64_t Offset, const MCSymbol *Lo, unsigned Size) const; + /// EmitLabelPlusOffset - Emit something like ".long Label+Offset" + /// where the size in bytes of the directive is specified by Size and Label + /// specifies the label. This implicitly uses .set if it is available. + void EmitLabelPlusOffset(const MCSymbol *Label, uint64_t Offset, + unsigned Size) const; + //===------------------------------------------------------------------===// // Dwarf Emission Helper Routines //===------------------------------------------------------------------===// diff --git a/include/llvm/MC/MCAsmInfo.h b/include/llvm/MC/MCAsmInfo.h index 176221e..43952e0 100644 --- a/include/llvm/MC/MCAsmInfo.h +++ b/include/llvm/MC/MCAsmInfo.h @@ -259,6 +259,10 @@ namespace llvm { /// absolute label instead of offset. bool DwarfUsesAbsoluteLabelForStmtList; // Defaults to true; + // DwarfUsesLabelOffsetDifference - True if Dwarf2 output can + // use EmitLabelOffsetDifference. + bool DwarfUsesLabelOffsetForRanges; + //===--- CBE Asm Translation Table -----------------------------------===// const char *const *AsmTransCBE; // Defaults to empty @@ -424,6 +428,9 @@ namespace llvm { bool doesDwarfUsesAbsoluteLabelForStmtList() const { return DwarfUsesAbsoluteLabelForStmtList; } + bool doesDwarfUsesLabelOffsetForRanges() const { + return DwarfUsesLabelOffsetForRanges; + } const char *const *getAsmCBE() const { return AsmTransCBE; } |