- Jan 28, 2015
-
-
Enrico Granata authored
Emit a warning the first time that one tries to resolve the size of a type passing a nullptr ExecutionContext - but only when it might actually make a difference This should help us find these cases and act on them llvm-svn: 227289
-
Greg Clayton authored
Changes in 226712 needed some fixing as a platform is almost always selected and even if platform options are specified when doing a "target create" they would get ignored if a platform was already selected. The change was made so we could re-use a platform if one was already created instead of creating a new one, but it would fail in the above case. To fix this, if we have a selected platform, we verify that the platform matches the current platform before we try to re-use it. We do this by asking the OptionGroupPlatform if the platform matches. If so, it returns true and we don't create a new platform, else we do. llvm-svn: 227288
-
Lang Hames authored
This has wider implications than I expected when I reviewed the patch: It can cause JIT crashes where clients have used the default value for AbortOnFailure during symbol lookup. I'm currently investigating alternative approaches and I hope to have this back in tree soon. llvm-svn: 227287
-
Zachary Turner authored
This adds two command line options: --symbols dumps a list of all symbols found in the PDB. --symbol-details dumps the same list, but with detailed information for every symbol such as type, attributes, etc. llvm-svn: 227286 -
Jim Ingham authored
some format of its own. llvm-svn: 227285
-
Reid Kleckner authored
Summary: Also add enum types for __C_specific_handler and _CxxFrameHandler3 for which we know a few things. Reviewers: majnemer Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D7214 llvm-svn: 227284
-
Jim Ingham authored
llvm-svn: 227283
-
Enrico Granata authored
And since enough of these are doing the right thing, add a test case to verify we are doing the right thing with freeze drying ObjC object types Fixes rdar://18092770 llvm-svn: 227282
-
Greg Clayton authored
(lldb) b isEqual: We end up calling "breakpoint set --name "isEqual:" and it was not checking for selectors due to a logic error. llvm-svn: 227281
-
Larisse Voufo authored
llvm-svn: 227279
-
Kaelyn Takata authored
Otherwise, in the most important case and the only case where SS and TempSS are different (which is when the CXXScopeSpec should be dropped, and TempSS is NULL) the wrong SourceRange will be used in the fixit for the typo correction. Fixes the remaining issue in PR20626. llvm-svn: 227278
-
Enrico Granata authored
Namely, this commit provides an actual implementation of how to retrieve the byte size in a sane way for an ObjC class, by scanning ivar offsets and byte sizes, figuring out the farthest-from-base ivar, and adding its byte size to that Still NFC llvm-svn: 227277
-
Zachary Turner authored
This adds two command line options to llvm-pdbdump. --source-files prints a flat list of all source files in the PDB. --compilands prints a list of all compilands (e.g. object files) that the PDB knows about, and for each one, a list of source files that the compiland is composed of as well as a hash of the original source file. llvm-svn: 227276 -
Zachary Turner authored
llvm-svn: 227275
-
Enrico Granata authored
Preparatory infrastructural work to support dynamically determining sizes of ObjC types via the runtime This is necessary because the byte size of an ObjC class type is not reliably statically knowable (e.g. because superclasses sit deep in frameworks that we have no debug info for) The lack of reliable size info is a problem when trying to freeze-dry an ObjC instance (not the pointer, the pointee) This commit lays the foundation for having language runtimes help in figuring out byte sizes, and having ClangASTType ask for runtime help No feature change as no runtime actually implements the logic, and nowhere is an ExecutionContext passed in yet llvm-svn: 227274
-
Eric Fiselier authored
llvm-svn: 227273
-
Quentin Colombet authored
This commit creates infinite loop in DAG combine for in the LLVM test-suite for aarch64 with mcpu=cylcone (just having neon may be enough to expose this). llvm-svn: 227272
-
Greg Clayton authored
Added test case to make sure we don't regress on settings breakpoints by selector and with the various partially specified ObjC specified breakpoints. This test tests the equivalent of: breakpoint set --name count breakpoint set --selector count breakpoint set --name isEqual: breakpoint set --selector isEqual: breakpoint set --name "-[MyClass(MyCategory) myCategoryFunction]" breakpoint set --name "-[MyClass myCategoryFunction]" breakpoint set --name "[MyClass myCategoryFunction]" llvm-svn: 227271 -
Hans Wennborg authored
Users expect to be able to use this with _xgetbv. llvm-svn: 227270
-
Petar Jovanovic authored
Use __clear_cache builtin instead of cacheflush() in Unix Memory::InvalidateInstructionCache(). Differential Revision: http://reviews.llvm.org/D7198 llvm-svn: 227269
-
Enrico Granata authored
llvm-svn: 227268
-
Richard Smith authored
llvm-svn: 227267
-
Alexey Samsonov authored
llvm-svn: 227265
-
Eric Fiselier authored
llvm-svn: 227264
-
Eric Fiselier authored
llvm-svn: 227263
-
Zachary Turner authored
llvm-svn: 227262
-
Saleem Abdulrasool authored
COMDATs must be identically named to the symbol. When support for COMDATs was introduced, the symbol rewriter was not updated, resulting in rewriting failing for symbols which were placed into COMDATs. This corrects the behaviour and adds test cases for this. llvm-svn: 227261
-
Saleem Abdulrasool authored
The rewrite for the pattern based rewrite is unnecessary if the existing name matches the pattern. llvm-svn: 227260
-
Rui Ueyama authored
That kind of reference was used only in ELFFile, and the use of that reference there didn't seem to make sense. All test still pass (after adjusting symbol names) without that code. LLD is still be able to link LLD and Clang. Looks like we just don't need this. http://reviews.llvm.org/D7189 llvm-svn: 227259
-
Alexey Samsonov authored
Make sure "void *ctx" doesn't point to an object which already went out of scope. This might also fix -Wuninitialized warnings GCC 4.7 produces while building ASan runtime. llvm-svn: 227258
-
Zachary Turner authored
PDB stores some of its data in streams and some in tables. This patch teaches llvm-pdbdump to dump basic summary data for the debug tables. In support of this, this patch also adds some DIA helper classes, such as a wrapper around an IDiaSymbol interface, as well as helpers for outputting various enumerations to a raw_ostream. llvm-svn: 227257
-
Sanjay Patel authored
llvm-svn: 227256
-
Chris Bieneman authored
This contains the changes from r227148 & r227154, and also fixes to the test case to properly clean up the stack options. llvm-svn: 227255
-
Kostya Serebryany authored
llvm-svn: 227254
-
Sanjay Patel authored
llvm-svn: 227253
-
Kostya Serebryany authored
Summary: A simple genetic in-process coverage-guided fuzz testing library. I've used this fuzzer to test clang-format (it found 12+ bugs, thanks djasper@ for the fixes!) and it may also help us test other parts of LLVM. So why not keep it in the LLVM repository? I plan to add the cmake build rules later (in a separate patch, if that's ok) and also add a clang-format-fuzzer target. See README.txt for details. Test Plan: Tests will follow separately. Reviewers: djasper, chandlerc, rnk Reviewed By: rnk Subscribers: majnemer, ygribov, dblaikie, llvm-commits Differential Revision: http://reviews.llvm.org/D7184 llvm-svn: 227252
-
Kaelyn Takata authored
Under certain circumstances, the identifier mentioned in the diagnostic won't match the intended correction even though the replacement expression and the note pointing to the decl are both correct. Basically, the TreeTransform assumes the TypoExpr's Consumer points to the correct TypoCorrection, but the handling of typos that appear to be ambiguous from the point of view of TransformTypoExpr would cause that assumption to be violated by altering the Consumer's correction stream. This fix allows the Consumer's correction stream to be reset to the right TypoCorrection after successfully resolving the percieved ambiguity. Included is a fix to suppress correcting the RHS of an assignment to the LHS of that assignment for non-C++ code, to prevent a regression in test/SemaObjC/provisional-ivar-lookup.m. This fixes PR22297. llvm-svn: 227251
-
Ahmed Bougacha authored
This was introduced in a faulty refactoring (r225640, mea culpa): the tests weren't testing the return values, so, for both __strcpy_chk and __stpcpy_chk, we would return the end of the buffer (matching stpcpy) instead of the beginning (for strcpy). The root cause was the prefix "__" being ignored when comparing, which made us always pick LibFunc::stpcpy_chk. Pass the LibFunc::Func directly to avoid this kind of error. Also, make the testcases as explicit as possible to prevent this. The now-useful testcases expose another, entangled, stpcpy problem, with the further simplification. This was introduced in a refactoring (r225640) to match the original behavior. However, this leads to problems when successive simplifications generate several similar instructions, none of which are removed by the custom replaceAllUsesWith. For instance, InstCombine (the main user) doesn't erase the instruction in its custom RAUW. When trying to simplify say __stpcpy_chk: - first, an stpcpy is created (fortified simplifier), - second, a memcpy is created (normal simplifier), but the stpcpy call isn't removed. - third, InstCombine later revisits the instructions, and simplifies the first stpcpy to a memcpy. We now have two memcpys. llvm-svn: 227250
-
Sanjoy Das authored
Splitting a loop to make range checks redundant is profitable only if the range check "never" fails. Make this fact a part of recognizing a range check -- a branch is a range check only if it is expected to pass (via branch_weights metadata). Differential Revision: http://reviews.llvm.org/D7192 llvm-svn: 227249
-
Alexey Samsonov authored
This reverts commits r226953 and r226974. llvm-svn: 227248
-