- Mar 23, 2011
-
-
Douglas Gregor authored
string itself lives longer than the DelayedDiagnostic. Fixes a recent use-after-free regression due to my availability attribute work. llvm-svn: 128148
-
Douglas Gregor authored
all platforms, not just darwin. Fixes the regression in this test case. llvm-svn: 128147
-
Chris Lattner authored
llvm-svn: 128142
-
Chris Lattner authored
llvm-svn: 128141
-
Ted Kremenek authored
llvm-svn: 128138
-
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
-
John McCall authored
on previous block parameters that crept in as part of my captures work a month or so ago. llvm-svn: 128121
-
John McCall authored
llvm-svn: 128118
-
- Mar 22, 2011
-
-
Eli Friedman authored
both 32-bit and 64-bit targets. llvm-svn: 128110
-
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
llvm-svn: 128075
-
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
-
John McCall authored
a function template decl's pattern, which was suddenly exposed by my last patch. llvm-svn: 128073
-
John McCall authored
they don't collide with file-scope extern functions from the same translation unit. This is basically a matter of applying the same logic to FunctionDecls as we were previously applying to VarDecls. llvm-svn: 128072
-
Ken Dyck authored
CharUnits. No change in functionality intended. llvm-svn: 128060
-
Ted Kremenek authored
Rework crash recovery cleanup in ASTUnit and CIndex to recover more memory during a Sema crash (we have just a handful of leaks left) and to use the simplified cleanup registration API. llvm-svn: 128059
-
Ted Kremenek authored
Remove crash recovery cleanups from TypeLocBuilder. They were a bit error prone, only hit in rare cases. llvm-svn: 128058
-
Ted Kremenek authored
llvm-svn: 128057
-
Ted Kremenek authored
Migrate 'PrettySTackTraceParserEntry' object out of Parser, and have it constructed within ParseAST. This avoids double crashes during crash recovery. llvm-svn: 128056
-
Ken Dyck authored
change in functionality intended. llvm-svn: 128050
-
Ken Dyck authored
to CharUnits. No change in functionality intended. llvm-svn: 128047
-
- Mar 21, 2011
-
-
Bob Wilson authored
llvm-svn: 128029
-
Bob Wilson authored
llvm-svn: 128018
-
Daniel Dunbar authored
really make any sense in this environment. llvm-svn: 128014
-
Fariborz Jahanian authored
// rdar:// 9139947 llvm-svn: 128013
-
Ted Kremenek authored
Improve crash recovery cleanup to recovery CompilerInstances during crash recovery. This was a huge resource "root" during crashes. This change requires making a bunch of fundamental Clang structures (optionally) reference counted to allow correct ownership semantics of these objects (e.g., ASTContext) to play out between an active ASTUnit and CompilerInstance object. llvm-svn: 128011
-
Ted Kremenek authored
llvm-svn: 128010
-
Ted Kremenek authored
llvm-svn: 128009
-
Joerg Sonnenberger authored
program and fallback to plain version otherwise. Use this for the NetBSD target to make it try e.g. i486--netbsdelf-as and -ld for target i486--netbsdelf. llvm-svn: 127996
-
Joerg Sonnenberger authored
Drop program paths on NetBSD (unused). Only include lib dir, if -nostdlib is absent. Use = to allow --sysroot to work. llvm-svn: 127995
-
Joerg Sonnenberger authored
and DragonFly. Use the --sysroot= form for Linux. Fix handling of = prefix for -B. llvm-svn: 127994
-
- Mar 20, 2011
-
-
David Chisnall authored
llvm-svn: 127980
-
Anders Carlsson authored
llvm-svn: 127977
-
Peter Collingbourne authored
llvm-svn: 127967
-