- Mar 23, 2011
-
-
Devang Patel authored
Radar 9168773 llvm-svn: 128150
-
Ken Dyck authored
CharUnits. No change in functionality intended. llvm-svn: 128129
-
Douglas Gregor authored
which versions of an OS provide a certain facility. For example, void foo() __attribute__((availability(macosx,introduced=10.2,deprecated=10.4,obsoleted=10.6))); says that the function "foo" was introduced in 10.2, deprecated in 10.4, and completely obsoleted in 10.6. This attribute ties in with the deployment targets (e.g., -mmacosx-version-min=10.1 specifies that we want to deploy back to Mac OS X 10.1). There are several concrete behaviors that this attribute enables, as illustrated with the function foo() above: - If we choose a deployment target >= Mac OS X 10.4, uses of "foo" will result in a deprecation warning, as if we had placed attribute((deprecated)) on it (but with a better diagnostic) - If we choose a deployment target >= Mac OS X 10.6, uses of "foo" will result in an "unavailable" warning (in C)/error (in C++), as if we had placed attribute((unavailable)) on it - If we choose a deployment target prior to 10.2, foo() is weak-imported (if it is a kind of entity that can be weak imported), as if we had placed the weak_import attribute on it. Naturally, there can be multiple availability attributes on a declaration, for different platforms; only the current platform matters when checking availability attributes. The only platforms this attribute currently works for are "ios" and "macosx", since we already have -mxxxx-version-min flags for them and we have experience there with macro tricks translating down to the deprecated/unavailable/weak_import attributes. The end goal is to open this up to other platforms, and even extension to other "platforms" that are really libraries (say, through a #pragma clang define_system), but that hasn't yet been designed and we may want to shake out more issues with this narrower problem first. Addresses <rdar://problem/6690412>. As a drive-by bug-fix, if an entity is both deprecated and unavailable, we only emit the "unavailable" diagnostic. llvm-svn: 128127
-
Ken Dyck authored
CharUnits. No change in functionality intended. llvm-svn: 128126
-
- Mar 22, 2011
-
-
David Chisnall authored
Simplify Mac runtime selection - it's the factory function's job to select which class to produce, not CodeGenModule's. llvm-svn: 128109
-
David Chisnall authored
Make the property accessor functions that take a ptrdiff_t actually take a ptrdiff_t instead of a long (should have no impact on any sane platforms, but win64 is not sane). llvm-svn: 128104
-
David Chisnall authored
Make the ivar offset always be a ptrdiff_t, because stuff in CGObjC.cpp expects this. Actually, it expects a long, but that's a bug that will be fixed in the next commit... llvm-svn: 128102
-
Nick Lewycky authored
llvm-svn: 128088
-
Daniel Dunbar authored
line options, instead of leveraging the blanket -mllvm option. - This allows using the frontend itself without requiring the backend have those options available (i.e., if the target wasn't built). llvm-svn: 128087
-
John McCall authored
conditioned on whether it has any destructible ivars, not on whether it has any non-trivial class-object initializers. llvm-svn: 128074
-
Ken Dyck authored
CharUnits. No change in functionality intended. llvm-svn: 128060
-
Ken Dyck authored
change in functionality intended. llvm-svn: 128050
-
Ken Dyck authored
to CharUnits. No change in functionality intended. llvm-svn: 128047
-
- Mar 20, 2011
-
-
David Chisnall authored
llvm-svn: 127980
-
Anders Carlsson authored
llvm-svn: 127977
-
- Mar 19, 2011
- Mar 18, 2011
-
-
Peter Collingbourne authored
add support for the OpenCL __private, __local, __constant and __global address spaces, as well as the __read_only, _read_write and __write_only image access specifiers. Patch originally by ARM; language-specific address space support by myself. llvm-svn: 127915
-
John McCall authored
Issue this as an IR-gen error; it's not really worthwhile doing this "right", i.e. in Sema, because IR gen knows a lot of tricks beyond what the constant evaluator knows. llvm-svn: 127854
-
Ken Dyck authored
llvm-svn: 127848
-
Ken Dyck authored
CharUnits. No change in functionality intended. llvm-svn: 127846
-
Ken Dyck authored
functionality intended. llvm-svn: 127844
-
- Mar 17, 2011
-
-
David Chisnall authored
Remove code that was intentionally generating bad code on the GNU runtime for no reason (failing to emit .cxx_constructor / .cxx_destructor methods). llvm-svn: 127806
-
Ken Dyck authored
change in functionality intended. llvm-svn: 127787
-
Matt Beaumont-Gay authored
llvm-svn: 127783
-
- Mar 16, 2011
-
-
Eli Friedman authored
llvm-svn: 127768
-
David Chisnall authored
llvm-svn: 127736
-
John McCall authored
in non-GC mode. llvm-svn: 127725
-
- Mar 15, 2011
-
-
John McCall authored
make sure that upcasts of member pointer types are covered as constants. Fixed rdar://problem/9130221 llvm-svn: 127702
-
Sebastian Redl authored
llvm-svn: 127685
-
Ken Dyck authored
replace some uses of FieldOffsetInBytes. The remaining uses of FieldOffsetInBytes will be replaced once NextFieldOffsetInBytes is converted to CharUnits. No change in functionality intended. llvm-svn: 127641
-
Jakob Stoklund Olesen authored
The tests fail in a -Asserts build. llvm-svn: 127635
-
- Mar 14, 2011
-
-
Rafael Espindola authored
llvm-svn: 127622
-
Sebastian Redl authored
llvm-svn: 127617
-
Eric Christopher authored
arguments. Process only the arguments that people write, but process all of them. Fixes rdar://8900346 llvm-svn: 127616
-
Rafael Espindola authored
is working around a bug in ld or if the new linker has a reasonable reason for wanting the string constant to be linker visible. llvm-svn: 127594
-
David Chisnall authored
llvm-svn: 127580
-
- Mar 13, 2011
-
-
Sebastian Redl authored
Instead of storing an ASTContext* in FunctionProtoTypes with computed noexcept specifiers, unique FunctionProtoTypes with a ContextualFoldingSet, as suggested by John McCall. llvm-svn: 127568
-
- Mar 12, 2011
-
-
Ken Dyck authored
No change in functionality intended. llvm-svn: 127538
-
Sebastian Redl authored
Change the interface to expose the new information and deal with the enormous fallout. Introduce the new ExceptionSpecificationType value EST_DynamicNone to more easily deal with empty throw specifications. Update the tests for noexcept and fix the various bugs uncovered, such as lack of tentative parsing support. llvm-svn: 127537
-