diff options
| author | Bill Wendling <isanbard@gmail.com> | 2009-08-25 20:21:17 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2009-08-25 20:21:17 +0000 |
| commit | 485591273c09a279673549ce82eee7a119c04a45 (patch) | |
| tree | 5ca3a5d23a754b6fd6c68dfe51cd607a527e31be /llvm/lib | |
| parent | 4cf325e09068ff36fa680c5460e7be1ff0f8b485 (diff) | |
| download | bcm5719-llvm-485591273c09a279673549ce82eee7a119c04a45.tar.gz bcm5719-llvm-485591273c09a279673549ce82eee7a119c04a45.zip | |
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.
llvm-svn: 80024
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/MC/MCAsmInfo.cpp | 1 | ||||
| -rw-r--r-- | llvm/lib/MC/MCAsmInfoDarwin.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCAsmInfo.cpp b/llvm/lib/MC/MCAsmInfo.cpp index 0653b19a568..6a1b0c2eee2 100644 --- a/llvm/lib/MC/MCAsmInfo.cpp +++ b/llvm/lib/MC/MCAsmInfo.cpp @@ -78,6 +78,7 @@ MCAsmInfo::MCAsmInfo() { DwarfRequiresFrameSection = true; DwarfUsesInlineInfoSection = false; Is_EHSymbolPrivate = true; + ForceEncodingOfFDETo32Bits = true; GlobalEHDirective = 0; SupportsWeakOmittedEHFrame = true; DwarfSectionOffsetDirective = 0; diff --git a/llvm/lib/MC/MCAsmInfoDarwin.cpp b/llvm/lib/MC/MCAsmInfoDarwin.cpp index 38b9e5b90b5..e2069b0038d 100644 --- a/llvm/lib/MC/MCAsmInfoDarwin.cpp +++ b/llvm/lib/MC/MCAsmInfoDarwin.cpp @@ -52,6 +52,7 @@ MCAsmInfoDarwin::MCAsmInfoDarwin() { // doesn't hurt anything. // FIXME: I need to get this from Triple. Is_EHSymbolPrivate = false; + ForceEncodingOfFDETo32Bits = false; GlobalEHDirective = "\t.globl\t"; SupportsWeakOmittedEHFrame = false; |

