Enable indirect encoding for the personality function
authorBill Wendling <isanbard@gmail.com>
Tue, 11 Sep 2007 23:55:40 +0000 (23:55 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 11 Sep 2007 23:55:40 +0000 (23:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41873 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMTargetAsmInfo.cpp
lib/Target/PowerPC/PPCTargetAsmInfo.cpp

index 1dea1c1388be311427a0f8e27bc4e38323f9594f..55ab20d47493c1c69ff0b1568ca8801d9cd0dc25 100644 (file)
@@ -60,6 +60,7 @@ ARMTargetAsmInfo::ARMTargetAsmInfo(const ARMTargetMachine &TM) {
     EightByteConstantSection = "\t.literal8\n";
     ReadOnlySection = "\t.const\n";
     HasDotTypeDotSizeDirective = false;
+    NeedsIndirectEncoding = true;
     if (TM.getRelocationModel() == Reloc::Static) {
       StaticCtorsSection = ".constructor";
       StaticDtorsSection = ".destructor";
index 20a0128a4aaa37da554917ebe3587de5a6569a8f..0c4a14477a77848d7683570d0a9ced62e9f9cb39 100644 (file)
@@ -60,6 +60,7 @@ DarwinTargetAsmInfo::DarwinTargetAsmInfo(const PPCTargetMachine &TM)
   WeakRefDirective = "\t.weak_reference\t";
   HiddenDirective = "\t.private_extern\t";
   SupportsExceptionHandling = false;
+  NeedsIndirectEncoding = true;
 
   DwarfAbbrevSection = ".section __DWARF,__debug_abbrev,regular,debug";
   DwarfInfoSection = ".section __DWARF,__debug_info,regular,debug";