| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
been running into it.
llvm-svn: 130296
|
| |
|
|
| |
llvm-svn: 130054
|
| |
|
|
| |
llvm-svn: 129951
|
| |
|
|
|
|
|
|
| |
system header
inside DiagnosticIDs::getDiagnosticLevel.
llvm-svn: 129950
|
| |
|
|
|
|
| |
can't be represented in the environment define.
llvm-svn: 129939
|
| |
|
|
|
|
| |
architectures for triples, e.g. ptx32-unknown-unknown
llvm-svn: 129870
|
| |
|
|
|
|
|
|
| |
during deserialization from a precompiled header, and update all of
its callers to note when this problem occurs and recover (more)
gracefully. Fixes <rdar://problem/9119249>.
llvm-svn: 129839
|
| |
|
|
| |
llvm-svn: 129835
|
| |
|
|
| |
llvm-svn: 129834
|
| |
|
|
| |
llvm-svn: 129823
|
| |
|
|
| |
llvm-svn: 129820
|
| |
|
|
|
|
| |
memory is used by selectors.
llvm-svn: 129728
|
| |
|
|
|
|
|
|
| |
Also, fold the sse4 and sse4.1 cases together.
Patch by Alexander Best!
llvm-svn: 129665
|
| |
|
|
|
|
| |
Monrocq
llvm-svn: 129614
|
| |
|
|
|
|
| |
Luis Felipe Strano Moraes!
llvm-svn: 129559
|
| |
|
|
| |
llvm-svn: 129553
|
| |
|
|
|
|
| |
for them. The only major missing feature is references.
llvm-svn: 129234
|
| |
|
|
|
|
|
|
| |
Make KEYALL a combination of all other flags instead
of its own separate flag. Also rewrite the enum
definitions in hex instead of decimal.
llvm-svn: 129213
|
| |
|
|
|
|
|
|
| |
Nom Nom Nom.
Patch by Anton Korobeynikov!
llvm-svn: 129174
|
| |
|
|
| |
llvm-svn: 128923
|
| |
|
|
| |
llvm-svn: 128850
|
| |
|
|
|
|
|
|
|
| |
Sandeep Patel noticed that the alignment was wrong for Neon vector types,
and this change is partly derived from his patch. For the APCS ABI, however,
additional changes were required: the maximum ABI alignment is 32 bits and
the preferred alignment for i64 and f64 types should be 64 bits.
llvm-svn: 128825
|
| |
|
|
|
|
| |
- Please never ever ever ever write a tool that sniffs this.
llvm-svn: 128599
|
| |
|
|
|
|
| |
into the Clang version.
llvm-svn: 128595
|
| |
|
|
|
|
| |
Fixes rdar://9170766.
llvm-svn: 128346
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
both 32-bit and 64-bit targets.
llvm-svn: 128110
|
| |
|
|
| |
llvm-svn: 128029
|
| |
|
|
| |
llvm-svn: 128010
|
| |
|
|
|
|
| |
CompilerInstance objects.
llvm-svn: 128009
|
| |
|
|
| |
llvm-svn: 127942
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
against the working directory specified in the file system options.
llvm-svn: 127893
|
| |
|
|
|
|
|
|
|
|
|
| |
and leaking of file descriptors.
Add 'openFile' bool to FileManager::getFile to specify whether we want to have the file opened or not, have it
false by default, and enable it only in HeaderSearch.cpp where the open+fstat optimization matters.
Fixes rdar://9139899.
llvm-svn: 127748
|
| |
|
|
|
|
|
|
| |
macro, alias of __attribute__.
On mingw without -fms-extensions, we can provide "as-is" __declspec.
llvm-svn: 127655
|
| |
|
|
|
|
|
|
| |
After the open+fstat optimization, files were already opened for FileManager::getBufferForFile() and we closed them after reading them.
The problem was that when -working-directory was passed, the code path that actually reuses & closes the already opened file descriptor
was not followed.
llvm-svn: 127639
|
| |
|
|
| |
llvm-svn: 127573
|
| |
|
|
|
|
|
|
|
|
|
| |
the SourceManager
should report the original file name for contents of files that were overriden by other files,
otherwise it should report the name of the new file. Default is true.
Also add similar field in PreprocessorOptions and pass similar parameter in ASTUnit::LoadFromCommandLine.
llvm-svn: 127289
|
| |
|
|
| |
llvm-svn: 127238
|
| |
|
|
| |
llvm-svn: 127144
|
| |
|
|
| |
llvm-svn: 127133
|
| |
|
|
|
|
|
|
|
| |
the file contents with it.
Allow remapping a file by specifying another filename whose contents should be loaded if the original
file gets loaded. This allows to override files without having to create & load buffers in advance.
llvm-svn: 127052
|
| |
|
|
|
|
|
|
| |
conventional categories into Basic and AST. Update the self-init checker
to use this logic; CFRefCountChecker is complicated enough that I didn't
want to touch it.
llvm-svn: 126817
|
| |
|
|
|
|
|
|
|
|
| |
warning flag for a warning mapped to an error.
For example:
t.c:7:9: error: using the result of an assignment as a condition without parentheses [-Werror,-Wparentheses]
llvm-svn: 126466
|
| |
|
|
|
|
|
| |
exist. Cheat and do this by adding some wrappers around the PresumedLoc
machinery that directly return the line and column number.
llvm-svn: 126281
|
| |
|
|
| |
llvm-svn: 126152
|
| |
|
|
| |
llvm-svn: 126063
|
| |
|
|
| |
llvm-svn: 126060
|
| |
|
|
| |
llvm-svn: 126050
|
| |
|
|
|
|
|
|
|
|
|
|
| |
that was ignored in a few places (most notably, code
completion). Introduce Selector::getNameForSlot() for the common case
where we only care about the name. Audit all uses of
getIdentifierInfoForSlot(), switching many over to getNameForSlot(),
fixing a few crashers.
Fixed <rdar://problem/8939352>, a code-completion crasher.
llvm-svn: 125977
|