<div class="gmail_quote">On Sat, Apr 30, 2011 at 9:49 PM, Rafael Espindola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com">rafael.espindola@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div id=":1tz">Modified: llvm/trunk/lib/Target/X86/X86TargetObjectFile.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86TargetObjectFile.cpp?rev=130637&r1=130636&r2=130637&view=diff" target="_blank" class="cremed">http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86TargetObjectFile.cpp?rev=130637&r1=130636&r2=130637&view=diff</a><br>

==============================================================================<br>
--- llvm/trunk/lib/Target/X86/X86TargetObjectFile.cpp (original)<br>
+++ llvm/trunk/lib/Target/X86/X86TargetObjectFile.cpp Sat Apr 30 23:49:54 2011<br>
@@ -58,7 +58,7 @@<br>
     return DW_EH_PE_absptr;<br>
 }<br>
<br>
-unsigned X8632_ELFTargetObjectFile::getFDEEncoding() const {<br>
+unsigned X8632_ELFTargetObjectFile::getFDEEncoding(bool FDE) const {<br>
   if (TM.getRelocationModel() == Reloc::PIC_)<br>
     return DW_EH_PE_pcrel | DW_EH_PE_sdata4;<br>
   else<br>
@@ -97,8 +97,15 @@<br>
   return DW_EH_PE_absptr;<br>
 }<br>
<br>
-unsigned X8664_ELFTargetObjectFile::getFDEEncoding() const {<br>
-  return DW_EH_PE_pcrel | DW_EH_PE_sdata4;<br>
+unsigned X8664_ELFTargetObjectFile::getFDEEncoding(bool CFI) const {<br>
+  if (CFI)<br>
+    return DW_EH_PE_pcrel | DW_EH_PE_sdata4;<br>
+<br>
+  CodeModel::Model Model = TM.getCodeModel();<br></div></blockquote><div><br></div><div>FYI, I removed this variable in r130640 as it was unused and causing warnings. Mentioning it on the off chance it was intended to be used...</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div id=":1tz">
+  if (TM.getRelocationModel() == Reloc::PIC_)<br>
+    return DW_EH_PE_pcrel | DW_EH_PE_sdata4;<br>
+<br>
+  return DW_EH_PE_udata4;<br>
 }<br>
<br>
 unsigned X8664_ELFTargetObjectFile::getTTypeEncoding() const {<br></div></blockquote></div><br>