diff options
author | Scott Michel <scottm@aero.org> | 2009-01-26 22:32:51 +0000 |
---|---|---|
committer | Scott Michel <scottm@aero.org> | 2009-01-26 22:32:51 +0000 |
commit | 79f01f5229a51c64b92e8ee56f9a1d8edf95ee57 (patch) | |
tree | 9e6ad9f93a75de3661f2c7c48231c338b895c1ad /include/llvm/Target/TargetAsmInfo.h | |
parent | b3e9a7147c3f9a73753811f6e689075b38eb5b0b (diff) | |
download | external_llvm-79f01f5229a51c64b92e8ee56f9a1d8edf95ee57.zip external_llvm-79f01f5229a51c64b92e8ee56f9a1d8edf95ee57.tar.gz external_llvm-79f01f5229a51c64b92e8ee56f9a1d8edf95ee57.tar.bz2 |
Make the Dwarf macro information section optional; CellSPU's assembler
doesn't support it. The default is set to 'true', so this should not
impact any other target backends.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63058 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetAsmInfo.h')
-rw-r--r-- | include/llvm/Target/TargetAsmInfo.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h index 0de7410..bdfacf7 100644 --- a/include/llvm/Target/TargetAsmInfo.h +++ b/include/llvm/Target/TargetAsmInfo.h @@ -429,27 +429,31 @@ namespace llvm { /// HasLEB128 - True if target asm supports leb128 directives. /// bool HasLEB128; // Defaults to false. - + /// hasDotLocAndDotFile - True if target asm supports .loc and .file /// directives for emitting debugging information. /// bool HasDotLocAndDotFile; // Defaults to false. - + /// SupportsDebugInformation - True if target supports emission of debugging /// information. bool SupportsDebugInformation; - + /// SupportsExceptionHandling - True if target supports /// exception handling. /// bool SupportsExceptionHandling; // Defaults to false. - + /// RequiresFrameSection - true if the Dwarf2 output needs a frame section /// bool DwarfRequiresFrameSection; // Defaults to true. + /// SupportsMacInfo - true if the Dwarf output supports macro information + /// + bool SupportsMacInfoSection; // Defaults to true + /// NonLocalEHFrameLabel - If set, the EH_frame label needs to be non-local. - /// + /// bool NonLocalEHFrameLabel; // Defaults to false. /// GlobalEHDirective - This is the directive used to make exception frame @@ -818,6 +822,9 @@ namespace llvm { bool doesDwarfRequireFrameSection() const { return DwarfRequiresFrameSection; } + bool doesSupportMacInfoSection() const { + return SupportsMacInfoSection; + } bool doesRequireNonLocalEHFrameLabel() const { return NonLocalEHFrameLabel; } |