diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-05-13 21:07:32 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-05-13 21:07:32 +0000 |
commit | 3b204e4c2e0669ff570214ef6f2771c532114de7 (patch) | |
tree | 1e8b2b56a933475a250cb4ece8ea8db0fa84a494 /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | 3181652363be742dbebd38e8bd7ea2ff9b0af942 (diff) | |
download | llvm-3b204e4c2e0669ff570214ef6f2771c532114de7.zip llvm-3b204e4c2e0669ff570214ef6f2771c532114de7.tar.gz llvm-3b204e4c2e0669ff570214ef6f2771c532114de7.tar.bz2 |
Add some basic type checking for attributes ns_returns_retained and
cf_returns_retained. Currently this attribute can now be applied to any
Objective-C method or C function that returns a pointer or Objective-C object
type.
Modify the tablegen definition of diagnostic 'warn_attribute_wrong_decl_type' to
expect that the diagnostics infrastructure will add quotes around the attribute
name when appropriate. Alonq with this change, I modified the places where this
warning is issued to passed the attribute's IdentifierInfo* instead of having a
hard-coded C constant string.
llvm-svn: 71718
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions