Enable CFI on OS X.
authorRafael Espindola <rafael.espindola@gmail.com>
Sat, 30 Apr 2011 22:29:54 +0000 (22:29 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sat, 30 Apr 2011 22:29:54 +0000 (22:29 +0000)
commit89fc9e8f5eb74d5607bed7759628775b564a5383
treefb908ff4a7e98e22ebbd3405c092c5b8fec61547
parentec7e4fff960f166be8a8a39b7ba8cc7baac6b02c
Enable CFI on OS X.
Currently the output should be almost identical to the one produced by CodeGen
to make the transition easier.

The only two differences I know of are:

* Some files get an extra advance loc of size 0. This will be fixed when
relaxations are enabled.
* The optimization of declaring an EH symbol as an external variable is not
implemented. This is a subset of adding the nounwind attribute, so we if really
this at -O0 we should probably do it at the IL level.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130623 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/MCAsmStreamer.cpp
lib/MC/MCMachOStreamer.cpp
lib/Target/X86/X86MCAsmInfo.cpp
test/CodeGen/PowerPC/mulhs.ll
test/CodeGen/X86/2007-09-17-ObjcFrameEH.ll
test/CodeGen/X86/2008-04-02-unnamedEH.ll
test/CodeGen/X86/2008-12-12-PrivateEHSymbol.ll
test/CodeGen/X86/hidden-vis-pic.ll
test/CodeGen/X86/personality.ll