- Jun 05, 2014
-
-
Ulrich Weigand authored
llvm-svn: 210264
-
Ulrich Weigand authored
When not optimizing, do not run the IfConverter pass, this makes debugging more difficult (and causes a testsuite failure in DebugInfo/unconditional-branch.ll). llvm-svn: 210263
-
Sasa Stankovic authored
* Move the instruction that changes sp outside of the branch delay slot. * Bundle-align the target of indirect branch. Differential Revision: http://llvm-reviews.chandlerc.com/D3928 llvm-svn: 210262
-
Sasa Stankovic authored
llvm-svn: 210261
-
Alexander Kornienko authored
Summary: This patch makes it possible for clang-tidy clients to provide different options for different translation units. The option, which doesn't make sense to be file-dependent, was moved to a separate ClangTidyGlobalOptions struct. Added parsing of ClangTidyOptions. Reviewers: klimek Reviewed By: klimek Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D3979 llvm-svn: 210260
-
Evgeniy Stepanov authored
In standalone build asan-rt is stored in yet another path. llvm-svn: 210259
-
Simon Atanasyan authored
llvm-svn: 210258
-
Evgeniy Stepanov authored
This sound like a good idea in general. Also, without this on Android we get add_lit_testsuite() with empty DEPENDS list, and it does not work well. llvm-svn: 210257
-
Evgeniy Stepanov authored
Pass cflags in a way that's compatible with standalone compiler-rt build. llvm-svn: 210256
-
Evgeniy Stepanov authored
llvm-svn: 210255
-
Matheus Almeida authored
Mips2 is a 32-bit architecture. llvm-svn: 210254
-
Evgeniy Stepanov authored
-pthread is no-op on Android. Suppress the unused argument warning. llvm-svn: 210253
-
Evgeniy Stepanov authored
Asan runtime library is always shared on Android, and -shared-libasan is no-op. Suppress the unused argument warning. llvm-svn: 210252
-
Robert Lytton authored
Differential Revision: http://reviews.llvm.org/D3949 llvm-svn: 210250
-
Iain Sandoe authored
r210177 added Makefiles to the lld project. This revision enables the automatic build of lld when the sources are found in tools/lld. llvm-svn: 210245
-
Matt Arsenault authored
llvm-svn: 210244
-
Rui Ueyama authored
This reverts accidental commit r210240. llvm-svn: 210243
-
Rui Ueyama authored
isCoalescedAway(x) is faster than replacement(x) != x as the former does not follow the replacement atom chain. Also it's easier to use. llvm-svn: 210242
-
Rui Ueyama authored
Rather than outside of the handler function to make the code simple. llvm-svn: 210241
-
Rui Ueyama authored
COFF supports a feature similar to ELF's section groups. This patch implements it. In ELF, section groups are identified by their names, and they are treated somewhat differently from regular symbols. In COFF, the feature is realized in a more straightforward way. A section can have an annotation saying "if Nth section is linked, link this section too." Implementing such feature is easy. We can add a reference from a target atom to an original atom, so that if the target is linked, the original atom is also linked. If not linked, both will be dead-stripped. So they are treated as a group. I added a new reference type, kindAssociate. It does nothing except preventing referenced atoms from being dead-stripped. No change to the Resolver is needed. Reviewers: Bigcheese, shankarke, atanasyan Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D3946 llvm-svn: 210240
-
Nick Lewycky authored
Fix coverage for files with global constructors again. Adds a testcase to the commit from r206671, as requested by David Blaikie. llvm-svn: 210239
-
Puyan Lotfi authored
I've already spoken to Alp and he signed off on making this one change, so that our buildbots go green in the short term. llvm-svn: 210238
-
David Blaikie authored
Revert r210221 again, due to a crash Richard Smith has provided involving self-hosting LLVM with libc++. Test case coming, once I reduce it. llvm-svn: 210236
-
Dan Albert authored
Android is removing sys/timeb.h because it was removed in POSIX 2008. llvm-svn: 210235
-
David Blaikie authored
DebugInfo: Reuse existing LexicalScope to retrieve the scope's MDNode, rather than looking it up through the DebugLoc. No functional change intended, just streamlines the abstract variable lookup/construction to use a common entry point. llvm-svn: 210234
-
David Blaikie authored
DebugInfo: Roll argument insertion into variable insertion to ensure arguments are correctly handled in all cases. No functional change intended. llvm-svn: 210233
-
Alexey Samsonov authored
llvm-svn: 210232
-
David Blaikie authored
Unused arguments were not being added to the argument list, but instead treated as arbitrary scope variables. This meant they weren't carefully added in the original argument order. In this particular example, though, it turns out the argument is only /mostly/ unused (well, actually it's entirely used, but in a specific way). It's a struct that, due to ABI reasons, is decomposed into chunks (exactly one chunk, since it has one member) and then passed. Since only one of those chunks is used (SROA, etc, kill the original reconstitution code) we don't have a location to describe the whole variable. In this particular case, since the struct consists of just the one int, once we have partial location information, this should have a location that describes the entire variable (since the piece is the entirety of the object). And at some point we'll need to describe the location of even /entirely/ unused arguments so that they can at least be printed on function entry. llvm-svn: 210231
-
Richard Smith authored
Bugfix: don't assert if someone manages to declare an operator new/delete template before the builtin operator new/delete. llvm-svn: 210230
-
Alexey Samsonov authored
llvm-svn: 210229
-
David Blaikie authored
DebugInfo: Add comments/assert description to r209674 based on Eric Christopher's post-commit review feedback. llvm-svn: 210228
-
Eric Christopher authored
use it here too. llvm-svn: 210227
-
Matt Arsenault authored
llvm-svn: 210226
-
Reid Kleckner authored
Due to what can only be described as a CRT bug, stdout and amazingly even stderr are not always flushed upon process termination, especially when the system is under high threading pressure. I have found two repros for this: 1) In lib\Support\Threading.cpp, change sys::Mutex to an std::recursive_mutex and run check-clang. Usually between 30 and 40 tests will fail. 2) Add OutputDebugStrings in code that runs during static initialization and static shutdown. This will sometimes generate similar failures. After a substantial amount of troubleshooting and debugging, I found that I could reproduce this from the command line without running check-clang. Simply make the mutex change described in #1, then manually run the following command many times by running it once, then pressing Up -> Enter very quickly: D:\src\llvm\build\vs2013\Debug\bin\c-index-test.EXE -cursor-at=D:\src\llvm\tools\clang\test\Index\targeted-preamble.h:2:15 D:\src\llvm\tools\clang\test\Index\targeted-cursor.c -include D:\src\llvm\build\vs2013\tools\clang\test\Index\Output\targeted-cursor.c.tmp.h -Xclang -error-on-deserialized-decl=NestedVar1 -Xclang -error-on-deserialized-decl=TopVar | D:\src\llvm\build\vs2013\Debug\bin\FileCheck.EXE D:\src\llvm\tools\clang\test\Index\targeted-cursor.c -check-prefix=PREAMBLE-CURSOR1 Sporadically they will fail, and attaching a debugger to a failed instance indicates that stdin of FileCheck.exe is empty. Note that due to the repro in #2, we can rule out a bug in the STL's mutex implementation, and instead conclude that this is a real flake in the windows test harness. Test Plan: Without patch: Ran check-clang 10 times and saw over 30 Unexpected failures on every run. With patch: Ran check-clang 10 times and saw 0 unexpected failures across all runs. Reviewers: rnk Differential Revision: http://reviews.llvm.org/D4021 Patch by Zachary Turner! llvm-svn: 210225
-
Eric Christopher authored
llvm-svn: 210224
-
Eric Christopher authored
llvm-svn: 210223
-
Matt Arsenault authored
llvm-svn: 210222
-
David Blaikie authored
Abstract variables within abstract scopes that are entirely optimized away in their first inlining are omitted because their scope is not present so the variable is never created. Instead, we should ensure the scope is created so the variable can be added, even if it's been optimized away in its first inlining. This fixes the incorrect debug info in missing-abstract-variable.ll (added in r210143) and passes an asserts self-hosting build, so hopefully there's not more of these issues left behind... *fingers crossed*. llvm-svn: 210221
-
Richard Smith authored
library. That results in the linker resolving all references to weak symbols in the DSO to the definition from within that DSO. Ironically, this rarely causes observable problems, except that it causes ubsan's own dynamic type check to spuriously fail (because we fail to properly merge type_info object names). llvm-svn: 210220
-
Richard Smith authored
llvm-svn: 210219
-