aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/MC
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-08-25 20:21:17 +0000
committerBill Wendling <isanbard@gmail.com>2009-08-25 20:21:17 +0000
commitb9e7689c89acf9324fba9242e00a9a4b8a3a83a6 (patch)
tree89ca3b21985b1048f6b4fb012a1b3345cde13fcb /include/llvm/MC
parentee5b680e8c1d6fb6e940796db1cdfc2b37dca079 (diff)
downloadexternal_llvm-b9e7689c89acf9324fba9242e00a9a4b8a3a83a6.zip
external_llvm-b9e7689c89acf9324fba9242e00a9a4b8a3a83a6.tar.gz
external_llvm-b9e7689c89acf9324fba9242e00a9a4b8a3a83a6.tar.bz2
Add a target asm info hook to specify that particular bits of data in the FDE
should be forced to 32-bits (.long) even on 64-bit architectures. Darwin wants these bits to be 64-bits (.quad). However, other platforms may disagree. This is just the info right now and is part of a work-in-progress which needs this. We'll add the actual *use* of this soon. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80024 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC')
-rw-r--r--include/llvm/MC/MCAsmInfo.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/include/llvm/MC/MCAsmInfo.h b/include/llvm/MC/MCAsmInfo.h
index f788c36..1fe6dbf 100644
--- a/include/llvm/MC/MCAsmInfo.h
+++ b/include/llvm/MC/MCAsmInfo.h
@@ -254,52 +254,49 @@ namespace llvm {
//===--- Dwarf Emission Directives -----------------------------------===//
/// AbsoluteDebugSectionOffsets - True if we should emit abolute section
- /// offsets for debug information. Defaults to false.
- bool AbsoluteDebugSectionOffsets;
+ /// offsets for debug information.
+ bool AbsoluteDebugSectionOffsets; // Defaults to false.
/// AbsoluteEHSectionOffsets - True if we should emit abolute section
/// offsets for EH information. Defaults to false.
bool AbsoluteEHSectionOffsets;
/// HasLEB128 - True if target asm supports leb128 directives.
- ///
- bool HasLEB128; // Defaults to false.
+ bool HasLEB128; // Defaults to false.
/// hasDotLocAndDotFile - True if target asm supports .loc and .file
/// directives for emitting debugging information.
- ///
- bool HasDotLocAndDotFile; // Defaults to false.
+ bool HasDotLocAndDotFile; // Defaults to false.
/// SupportsDebugInformation - True if target supports emission of debugging
/// information.
- bool SupportsDebugInformation;
+ bool SupportsDebugInformation; // Defaults to false.
- /// SupportsExceptionHandling - True if target supports
- /// exception handling.
- ///
- // Defaults to None
- ExceptionHandling::ExceptionsType ExceptionsType;
+ /// SupportsExceptionHandling - True if target supports exception handling.
+ ExceptionHandling::ExceptionsType ExceptionsType; // Defaults to None
/// RequiresFrameSection - true if the Dwarf2 output needs a frame section
- ///
- bool DwarfRequiresFrameSection; // Defaults to true.
+ bool DwarfRequiresFrameSection; // Defaults to true.
/// DwarfUsesInlineInfoSection - True if DwarfDebugInlineSection is used to
/// encode inline subroutine information.
- bool DwarfUsesInlineInfoSection; // Defaults to false.
+ bool DwarfUsesInlineInfoSection; // Defaults to false.
/// Is_EHSymbolPrivate - If set, the "_foo.eh" is made private so that it
/// doesn't show up in the symbol table of the object file.
- bool Is_EHSymbolPrivate; // Defaults to true.
+ bool Is_EHSymbolPrivate; // Defaults to true.
+
+ /// ForceEncodingOfFDETo32Bits - If set, the encoding of some of the FDE
+ /// data is forced to 32-bit.
+ bool ForceEncodingOfFDETo32Bits; // Defaults to true.
/// GlobalEHDirective - This is the directive used to make exception frame
/// tables globally visible.
- ///
- const char *GlobalEHDirective; // Defaults to NULL.
+ const char *GlobalEHDirective; // Defaults to NULL.
/// SupportsWeakEmptyEHFrame - True if target assembler and linker will
/// handle a weak_definition of constant 0 for an omitted EH frame.
- bool SupportsWeakOmittedEHFrame; // Defaults to true.
+ bool SupportsWeakOmittedEHFrame; // Defaults to true.
/// DwarfSectionOffsetDirective - Special section offset directive.
const char* DwarfSectionOffsetDirective; // Defaults to NULL
@@ -508,6 +505,9 @@ namespace llvm {
bool is_EHSymbolPrivate() const {
return Is_EHSymbolPrivate;
}
+ bool forceEncodingOfFDETo32Bits() const {
+ return ForceEncodingOfFDETo32Bits;
+ }
const char *getGlobalEHDirective() const {
return GlobalEHDirective;
}