aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-08-31 23:50:19 +0000
committerDevang Patel <dpatel@apple.com>2010-08-31 23:50:19 +0000
commitae84d5b9bafd1ba88aa12e8398e5385f229fa306 (patch)
tree046364af7784394e50157cbc056520249476e198 /include
parenta6d050df14e5cbbec612251e86f889b313ec1cdd (diff)
downloadexternal_llvm-ae84d5b9bafd1ba88aa12e8398e5385f229fa306.zip
external_llvm-ae84d5b9bafd1ba88aa12e8398e5385f229fa306.tar.gz
external_llvm-ae84d5b9bafd1ba88aa12e8398e5385f229fa306.tar.bz2
Use absolute label for DW_AT_stmt_list if a target does not prefer offset here.
This patch was developed on top of original patch by Artur Pietrek. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112678 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/MC/MCAsmInfo.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/MC/MCAsmInfo.h b/include/llvm/MC/MCAsmInfo.h
index 8516de0..176221e 100644
--- a/include/llvm/MC/MCAsmInfo.h
+++ b/include/llvm/MC/MCAsmInfo.h
@@ -255,6 +255,10 @@ namespace llvm {
/// DwarfSectionOffsetDirective - Special section offset directive.
const char* DwarfSectionOffsetDirective; // Defaults to NULL
+ /// DwarfUsesAbsoluteLabelForStmtList - True if DW_AT_stmt_list needs
+ /// absolute label instead of offset.
+ bool DwarfUsesAbsoluteLabelForStmtList; // Defaults to true;
+
//===--- CBE Asm Translation Table -----------------------------------===//
const char *const *AsmTransCBE; // Defaults to empty
@@ -417,6 +421,9 @@ namespace llvm {
const char *getDwarfSectionOffsetDirective() const {
return DwarfSectionOffsetDirective;
}
+ bool doesDwarfUsesAbsoluteLabelForStmtList() const {
+ return DwarfUsesAbsoluteLabelForStmtList;
+ }
const char *const *getAsmCBE() const {
return AsmTransCBE;
}