- Mar 07, 2013
-
-
Nadav Rotem authored
llvm-svn: 176604
-
Rafael Espindola authored
llvm-svn: 176603
-
Nadav Rotem authored
llvm-svn: 176602
-
Jordan Rose authored
Officially in the C++ standard, a null reference cannot exist. However, it's still very easy to create one: int &getNullRef() { int *p = 0; return *p; } We already check that binds to reference regions don't create null references. This patch checks that we don't create null references by returning, either. <rdar://problem/13364378> llvm-svn: 176601
-
Jordan Rose authored
No functionality change. llvm-svn: 176600
-
Andrew Trick authored
Fixes rdar:13349374. Volatile loads and stores need to be preserved even if the language standard says they are undefined. "volatile" in this context means "get out of the way compiler, let my platform handle it". Additionally, this is the only way I know of with llvm to write to the first page (when hardware allows) without dropping to assembly. llvm-svn: 176599
-
Michael Liao authored
- Phi nodes should be replaced/updated after lowering CMOV into branch because 'mainMBB' updating operand in Phi node is changed. - Add EFLAGS in livein before lowering the 2nd CMOV. It's necessary as we will reuse the EFLAGS generated before the 1st lowered CMOV, which won't clobber EFLAGS. However, we need explicitly specify that. - '-attr=-cmov' test case are added. llvm-svn: 176598
-
Daniel Malea authored
- remove "-debug" flag from swig scripts - use "echo -n" instead of "echo" in dummy target to avoid printing a useless newline llvm-svn: 176597
-
Daniel Malea authored
- Avoid passing 'ccache' as the test compiler. Instead, use first arg after ccache. llvm-svn: 176596
-
Daniel Malea authored
- missing definitions were causing different definitions of type 'off_t', resulting in linker errors - fix is to define _LARGEFILE_SOURCE and _FILE_OFFSET_BITS=64 llvm-svn: 176595
-
rdar://problem/13119170Han Ming Ong authored
Reap the child process (debugserver) when it is done. llvm-svn: 176594
-
Howard Hinnant authored
No functionality change at this time. I've split _LIBCPP_VISIBLE up into two flags: _LIBCPP_TYPE_VIS and _LIBCPP_FUNC_VIS. This is in preparation for taking advantage of clang's new __type_visibility__ attribute. llvm-svn: 176593
-
rdar://problem/13362109Greg Clayton authored
LLDB was not parsing line tables correctly for DWARF in .o files after recent debug map changes. This has now been fixed. llvm-svn: 176592
-
Jason Molenda authored
Noticed these while working on the last commit. llvm-svn: 176590
-
Jason Molenda authored
Retrieve the dyld shared cache mapping offset from the shared cache instead of hardcoding the value. Read the version number of the dyld shared cache. <rdar://problem/13311882> llvm-svn: 176589
-
- Mar 06, 2013
-
-
Adrian Prantl authored
that adds ivars to an interface. Fixes rdar://13175234 This is an update to r176116 that performs a smart caching of interfaces. llvm-svn: 176584
-
Shankar Easwaran authored
llvm-svn: 176583
-
Andrew Kaylor authored
The test was marked as expectedFailureLinux, but now it passes with gcc and some versions of clang. Newer versions of clang introduce a failure due to bad DWARF information. llvm-svn: 176581
-
Akira Hatanaka authored
In N64-static, GOT address is needed to compute the branch address. llvm-svn: 176580
-
Greg Clayton authored
llvm-svn: 176579
-
Andrew Kaylor authored
llvm-svn: 176578
-
Anna Zaks authored
This allows us to trigger the IDC visitor in the added test case. llvm-svn: 176577
-
Anna Zaks authored
[analyzer] IDC: Add config option; perform the idc check on first “null node” rather than last “non-null”. The second modification does not lead to any visible result, but, theoretically, is what we should have been looking at to begin with since we are checking if the node was assumed to be null in an inlined function. llvm-svn: 176576
-
Sean Callanan authored
make it more obvious what's going on. llvm-svn: 176575
-
Andrew Kaylor authored
llvm-svn: 176574
-
Howard Hinnant authored
Have basic_istream::read call sgetn intead of sbumpc individual characters. This addresses http://llvm.org/bugs/show_bug.cgi?id=15427. llvm-svn: 176573
-
Andrew Trick authored
Always print options that differ from their implicit default. At least for simple option types. llvm-svn: 176572
-
Michael Liao authored
llvm-svn: 176570
-
Andrew Trick authored
This way, clang -mllvm -print-options shows that the driver is overriding it. llvm-svn: 176569
-
Howard Hinnant authored
llvm-svn: 176568
-
Argyrios Kyrtzidis authored
Stat'ing all the headers from the PCH to make sure they are up-to-date takes significant time. In a particular source file (whose PCH file included Cocoa.h) from total -fsyntax-only time 12% was just stat calls. Change pre-validation to only check non-system headers. There are some notable disadvantages: -If a system header, that is not include-guarded, changes after the PCH was created, we will not find it in the header info table and we will #import it, effectively #importing it twice, thus we will emit some error due to a multiple definition and after that the "header was modified" error will likely be emitted, for example something like: NSDictionary.h:12:1: error: duplicate interface definition for class 'NSDictionary' @interface NSDictionary : NSObject <NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration> ^ NSDictionary.h:12:12: note: previous definition is here @interface NSDictionary : NSObject <NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration> ^ fatal error: file 'NSDictionary.h' has been modified since the precompiled header was built Though we get the "header was modified" error, this is a bit confusing. -Theoretically it is possible that such a system header will cause no errors but it will just cause an unfortunate semantic change, though I find this rather unlikely. The advantages: -Reduces compilation time when using a huge PCH like the Cocoa ones -System headers change very infrequent and when they do, users/build systems should be able to know that re-building from scratch is needed. Addresses rdar://13056262 llvm-svn: 176567
-
Argyrios Kyrtzidis authored
Previously the hash would be the filename portion of the path, which could be different for a filename with different case or a symbolic link with a different name completely. This did not actually create any issue so far because by validating all headers in the PCH we created uniqued FileEntries based on inodes, so an #include of a symbolic link (refering to a file from the PCH) would end up with a FileEntry with filename same as the one recorded in the PCH. llvm-svn: 176566
-
Argyrios Kyrtzidis authored
We can just re-use the one from HeaderFileInfoLookupTable. llvm-svn: 176565
-
Argyrios Kyrtzidis authored
[PCH] Remove a couple of fields from serialization::reader::HeaderFileInfoTrait that are not used for anything. llvm-svn: 176564
-
Fariborz Jahanian authored
llvm-svn: 176563
-
Shuxin Yang authored
The "invariant.load" metadata indicates the memory unit being accessed is immutable. A load annotated with this metadata can be moved across any store. As I am not sure if it is legal to move such loads across barrier/fence, this change dose not allow such transformation. rdar://11311484 Thank Arnold for code review. llvm-svn: 176562
-
Fariborz Jahanian authored
several diagnostics into one. // rdar://13094352 llvm-svn: 176560
-
Howard Hinnant authored
The bitset(unsigned long long) constructor was broken by the constexpr additions only on 32 bit platforms. Fixed. This addresses http://llvm.org/bugs/show_bug.cgi?id=15444. llvm-svn: 176559
-
Matt Kopec authored
Patch by Ashok Thirumurthi. llvm-svn: 176558
-
Dmitri Gribenko authored
Patch by Sanne Wouda. llvm-svn: 176557
-