summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2007-11-04 22:37:50 +0000
committerSteve Naroff <snaroff@apple.com>2007-11-04 22:37:50 +0000
commitf36987c79b9aaa7ff7c76c7b2bf7d064d4490b6d (patch)
tree094a7fd089c57b5cd0501ee2628e7cbb41930544 /llvm/lib/CodeGen/MachineFunction.cpp
parenteea82746b32d0aa3d976c377c7abe1beec40cb80 (diff)
downloadbcm5719-llvm-f36987c79b9aaa7ff7c76c7b2bf7d064d4490b6d.tar.gz
bcm5719-llvm-f36987c79b9aaa7ff7c76c7b2bf7d064d4490b6d.zip
Two additions...
- Synthesize the funky cast for objc_msgSend(). For the basic case, it looks like... ((id (*)(id, SEL))(void *)objc_msgSend)(obj, sel); The "void *" cast is needed to workaround a GCC "bandaid" (Chris says it has something to do with the inliner). Without the extra "void *" cast, we get spurious warnings/notes that look like... xx.m:17: warning: function called through a non-compatible type xx.m:17: note: if this code is reached, the program will abort - Add prototypes for the ObjC functions we call, objc_msgSend/objc_getClass for now (don't depend on them being included). llvm-svn: 43685
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud