- Jun 03, 2014
-
-
Richard Smith authored
trailing elements as a single loop, rather than sometimes emitting a nest of several loops. This fixes a bug where CodeGen would sometimes try to emit an expression with the wrong type for the element being initialized. Plus various other minor cleanups to the IR produced for array new initialization. llvm-svn: 210079
-
Rafael Espindola authored
llvm-svn: 210078
-
Rafael Espindola authored
Might also fix the windows build. llvm-svn: 210077
-
Rafael Espindola authored
llvm-svn: 210076
-
Rafael Espindola authored
llvm-svn: 210075
-
Rui Ueyama authored
llvm-svn: 210074
-
Rafael Espindola authored
llvm-svn: 210073
-
Rafael Espindola authored
llvm-svn: 210072
-
Rafael Espindola authored
llvm-svn: 210071
-
Rafael Espindola authored
llvm-svn: 210070
-
Greg Fitzgerald authored
llvm-svn: 210069
-
Nick Lewycky authored
Ignore line numbers on debug intrinsics. Add an assert to ensure that we aren't emitting line number zero, the .gcno format uses this to indicate that the next field is a filename. llvm-svn: 210068
-
Jiangning Liu authored
llvm-svn: 210067
-
Rui Ueyama authored
Previously section groups are doubly linked to their children. That is, an atom representing a group has group-child references to its group contents, and content atoms also have group-parent references to the group atom. That relationship was invariant; if X has a group-child edge to Y, Y must have a group-parent edge to X. However we were not using group-parent references at all. The resolver only needs group-child edges. This patch simplifies the section group by removing the unused reverse edge. No functionality change intended. Differential Revision: http://reviews.llvm.org/D3945 llvm-svn: 210066
-
Alp Toker authored
This could have generated non-random output under error conditions in release builds. llvm-svn: 210065
-
Nikola Smiljanic authored
llvm-svn: 210064
-
Rafael Espindola authored
Aliases in llvm now hold an arbitrary expression. llvm-svn: 210063
-
Rafael Espindola authored
This patch changes GlobalAlias to point to an arbitrary ConstantExpr and it is up to MC (or the system assembler) to decide if that expression is valid or not. This reduces our ability to diagnose invalid uses and how early we can spot them, but it also lets us do things like @test5 = alias inttoptr(i32 sub (i32 ptrtoint (i32* @test2 to i32), i32 ptrtoint (i32* @bar to i32)) to i32*) An important implication of this patch is that the notion of aliased global doesn't exist any more. The alias has to encode the information needed to access it in its metadata (linkage, visibility, type, etc). Another consequence to notice is that getSection has to return a "const char *". It could return a NullTerminatedStringRef if there was such a thing, but when that was proposed the decision was to just uses "const char*" for that. llvm-svn: 210062 -
David Majnemer authored
Make sure we appropriately retry calls to read if the return result is less than what we asked for. Additionally, check and handle IO errors: EINTR results in the read operation getting restarted; other errors turn into exceptions. llvm-svn: 210061
-
David Majnemer authored
random_device::random_device(const string&) wrongly assumes that open can only validly return a file descriptor greater than zero. This results in random_device believing that it didn't successfully open the device causing it to throw in it's constructor, this ends up leaking a file descriptor. The fix is simple, don't error on file descriptors which are zero. llvm-svn: 210060
-
Alp Toker authored
llvm-svn: 210059
-
Alp Toker authored
The only remaining user didn't actually use the non-dynamic storage facility this class provides. The std::string is transitional and likely to be StringRefized shortly. llvm-svn: 210058
-
Rui Ueyama authored
Layout-before edges are no longer used for layout, but they are still there for dead-stripping. If we would just remove them from code, LLD would wrongly remove live atoms that were referenced by layout-befores. This patch fixes the issue. Before dead-stripping, it scans all atoms to construct a reverse map for layout-after edges. Dead- stripping pass uses the map to traverse the graph. Differential Revision: http://reviews.llvm.org/D3986 llvm-svn: 210057
-
Marshall Clow authored
llvm-svn: 210056
-
Hans Wennborg authored
This corresponds to the same change for the MS ABI in r209908. Differential Revision: http://reviews.llvm.org/D3993 llvm-svn: 210054
-
Greg Fitzgerald authored
No longer need to set ANDROID if COMPILER_RT_TEST_TARGET_TRIPLE is arm-linux-androideabi. No need to set ANDROID_COMMON_FLAGS. These flags are already in CMAKE_CXX_FLAGS which are used in try_compile(). llvm-svn: 210053
-
Rafael Espindola authored
The code was actually correct. Sorry for the confusion. I have expanded the comment saying why the analysis is valid to avoid me misunderstaning it again in the future. llvm-svn: 210052
-
Greg Clayton authored
- Fix Xcode project to have source files for SBTypeEnumMember.h/SBTypeEnumMember.cpp in the right place - Rename a member variable to inluce "_sp" suffix since it is a shared pointer - Cleanup initialization code for TypeEnumMemberImpl to not warn about out of order initialization llvm-svn: 210051
-
Will Schmidt authored
Allow the tests to succeed with tne signext (or other) attribute is present. The attributes show up for Power, but not for x86*, so need to be appropriately wildcarded. llvm-svn: 210050
-
Rafael Espindola authored
llvm-svn: 210049
-
Rafael Espindola authored
This reverts commit r210029. It was not correctly handling cases where LHS and RHS had multiple but different sign bits. llvm-svn: 210048
-
Alexey Samsonov authored
llvm-svn: 210047
-
Todd Fiala authored
Change by Russell Harmon. Xcode project updates (and all errors therein) by Todd Fiala. llvm-svn: 210046
-
Eric Christopher authored
llvm-svn: 210045
-
Alexander Kornienko authored
Summary: No filters should affect the display of errors. Fixed a few tests, which had compile errors. We need to think what we should do with mapped errors (-Werror). Reviewers: klimek Reviewed By: klimek Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D3982 llvm-svn: 210044
-
Alexander Kornienko authored
Summary: This seems like a more appropriate reaction to the user specifying a single check with a wrong name, for example. Reviewers: klimek Reviewed By: klimek Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D3981 llvm-svn: 210043
-
Michael J. Spencer authored
llvm-svn: 210042
-
Alexey Samsonov authored
llvm-svn: 210041
-
Rafael Espindola authored
Patch by Rahul Jain. llvm-svn: 210040
-
Hans Wennborg authored
llvm-svn: 210039
-