summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-09-15 18:32:58 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-09-15 18:32:58 +0000
commit6865d6f08a52ad4280009196f41cf35cc1400e8b (patch)
tree75735f620ef26becd87d8b8d3ae3ff689d8921cd /clang/lib/CodeGen/CodeGenModule.h
parent9dcb724d311456e1db023dde9aead5968e87f160 (diff)
downloadbcm5719-llvm-6865d6f08a52ad4280009196f41cf35cc1400e8b.tar.gz
bcm5719-llvm-6865d6f08a52ad4280009196f41cf35cc1400e8b.zip
Fix a lot of confusion around inserting nops on empty functions.
On MachO, and MachO only, we cannot have a truly empty function since that breaks the linker logic for atomizing the section. When we are emitting a frame pointer, the presence of an unreachable will create a cfi instruction pointing past the last instruction. This is perfectly fine. The FDE information encodes the pc range it applies to. If some tool cannot handle this, we should explicitly say which bug we are working around and only work around it when it is actually relevant (not for ELF for example). Given the unreachable we could omit the .cfi_def_cfa_register, but then again, we could also omit the entire function prologue if we wanted to. llvm-svn: 217801
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud