From 6442f658e78ec2aecb6aaf7938d6ccadb7f5b140 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Mon, 18 Jan 2010 19:36:27 +0000 Subject: - Add a comment to the callback indicating that it's *extremely* not a good idea, but unfortunately necessary. - Default to using 4-bytes for the LSDA pointer encoding to agree with the encoded value in the CIE. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93753 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86TargetMachine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Target/X86/X86TargetMachine.cpp') diff --git a/lib/Target/X86/X86TargetMachine.cpp b/lib/Target/X86/X86TargetMachine.cpp index ea21676..b778fc2 100644 --- a/lib/Target/X86/X86TargetMachine.cpp +++ b/lib/Target/X86/X86TargetMachine.cpp @@ -251,8 +251,8 @@ void X86TargetMachine::setCodeModelForJIT() { } DwarfLSDAEncoding::Encoding X86TargetMachine::getLSDAEncoding() const { - if (Subtarget.isTargetDarwin() && Subtarget.getDarwinVers() > 10) + if (Subtarget.isTargetDarwin() && Subtarget.getDarwinVers() != 10) return DwarfLSDAEncoding::FourByte; - return DwarfLSDAEncoding::Default; + return DwarfLSDAEncoding::EightByte; } -- cgit v1.1