- May 30, 2013
-
-
Serge Pavlov authored
llvm-svn: 182911
-
Galina Kistanova authored
llvm-svn: 182910
-
Nick Lewycky authored
llvm-svn: 182909
-
Rafael Espindola authored
For COFF and MachO, sections semantically have relocations that apply to them. That is not the case on ELF. In relocatable objects (.o), a section with relocations in ELF has offsets to another section where the relocations should be applied. In dynamic objects and executables, relocations don't have an offset, they have a virtual address. The section sh_info may or may not point to another section, but that is not actually used for resolving the relocations. This patch exposes that in the ObjectFile API. It has the following advantages: * Most (all?) clients can handle this more efficiently. They will normally walk all relocations, so doing an effort to iterate in a particular order doesn't save time. * llvm-readobj now prints relocations in the same way the native readelf does. * probably most important, relocations that don't point to any section are now visible. This is the case of relocations in the rela.dyn section. See the updated relocation-executable.test for example. llvm-svn: 182908
-
Aaron Ballman authored
Switching the tests to use size_t instead of unsigned int to hopefully appease the Linux x64 build bot (take 2, forgot this test case). llvm-svn: 182907
-
Aaron Ballman authored
Switching the tests to use size_t instead of unsigned int to hopefully appease the Linux x64 build bot. llvm-svn: 182906
-
Aaron Ballman authored
Add support to fallback on operator new when a placement operator new[] is called for which there is no valid declaration. This fallback only happens in Microsoft compatibility mode. This patch addresses PR13164, and improves support for the WDK. llvm-svn: 182905
-
Jordan Rose authored
Most loop notes (like "entering loop body") are attached to the condition expression guarding a loop or its equivalent. For loops may not have a condition expression, though. Rather than crashing, just use the entire ForStmt as the location. This is probably the best we can do. <rdar://problem/14016063> llvm-svn: 182904
-
Eric Christopher authored
llvm-svn: 182903
-
Eric Christopher authored
llvm-svn: 182902
-
Eric Christopher authored
llvm-svn: 182901
-
Eric Christopher authored
llvm-svn: 182900
-
Bill Wendling authored
In fact, we're probably going to support these flags in completely different ways. So this test is no longer valid. llvm-svn: 182899
-
Rafael Espindola authored
llvm-svn: 182898
-
Michael Gottesman authored
llvm-svn: 182897
-
Michael Gottesman authored
Added code to the unittest for APFloat::getSmallest to double check that we consider the result to be denormal. I additionally changed certain checks to use EXPECT_FALSE instead of a boolean complement with EXPECT_TRUE. llvm-svn: 182896
-
Argyrios Kyrtzidis authored
[libclang] When indexing a @synthesize, don't consider that it defines a getter/setter if one is already defined by the user. Fixes rdar://13925258 llvm-svn: 182895
-
Michael Gottesman authored
llvm-svn: 182894
-
rdar://problem/13956179Greg Clayton authored
Cleaned up the thread updating code in the OperatingSystemPython class. It doesn't need to clear the "new_thread_list" anymore as it is always empty. It also now assigns the "core_thread_list" to "new_thread_list" if no threads are detected through python. llvm-svn: 182893
-
Greg Clayton authored
llvm-svn: 182892
-
Richard Smith authored
Document -fno-sanitize-recover and -fsanitize-undefined-trap-on-error and attempt to explain the difference between them. llvm-svn: 182890
-
Shankar Easwaran authored
Users can override the default value of the dynamic linker to be set to the one that appears in the command line. The path can even be empty!. Added a test for the option. llvm-svn: 182889
-
Andrew Kaylor authored
llvm-svn: 182888
-
Andrew Kaylor authored
llvm-svn: 182887
-
Manuel Klimek authored
When trying to fall back to search from the end onwards, we would still find leading whitespace if the leading whitespace went on after the end of the line. llvm-svn: 182886
-
Andrew Trick authored
Fixes PR16146: gdb.base__call-ar-st.exp fails after pre-RA-sched=source fixes. Patch by Xiaoyi Guo! This also fixes an unsupported dbg.value test case. Codegen was previously incorrect but the test was passing by luck. llvm-svn: 182885
-
- May 29, 2013
-
-
Ted Kremenek authored
This change is motivated from user feedback that some APIs use void* as an opaque "context" object that may not really be a pointer. Such users want an ability to turn off the warning for casts to void* while preserving the warning for other cases. Implements <rdar://problem/14016721>. llvm-svn: 182884
-
Ahmed Bougacha authored
This corrects a problem where x86 instructions that implicitly define/use both an A-register (RAX, EAX, ..) and EFLAGS were declared as only defining/using EFLAGS, because the outer "let Defs/Uses = [EFLAGS]" in the various multiclasses overrides the "let Defs/Uses = [areg]" in BinOpAI. The instructions deriving from BinOpAI were moved out of the "let Defs", and a BinOpAI_FF class was created, for instructions that implicitly define and use EFLAGS and the A-register (SBC, ADC). llvm-svn: 182883
-
David Majnemer authored
llvm-svn: 182882
-
Roman Divacky authored
users can disable those. Just like in autoconf generated makefiles. llvm-svn: 182881
-
Jordan Rose authored
In C, 'void' is treated like any other incomplete type, and though it is never completed, you can cast the address of a void-typed variable to do something useful. (In C++ it's illegal to declare a variable with void type.) Previously we asserted on this code; now we just treat it like any other incomplete type. And speaking of incomplete types, we don't know their extent. Actually check that in TypedValueRegion::getExtent, though that's not being used by any checkers that are on by default. llvm-svn: 182880
-
Chad Rosier authored
llvm-svn: 182879
-
Arnaud A. de Grandmaison authored
When invoked from Ninja, clang does not detect that it can use colors : see https://github.com/martine/ninja/issues/174 llvm-svn: 182878
-
JF Bastien authored
FastISel was only enabled for iOS ARM and Thumb2, this patch enables it for ARM (not Thumb2) on Linux and NaCl. Thumb2 support needs a bit more work, mainly around register class restrictions. The patch punts to SelectionDAG when doing TLS relocation on non-Darwin targets. I will fix this and other FastISel-to-SelectionDAG failures in a separate patch. The patch also forces FastISel to retain frame pointers: iOS always keeps them for backtracking (so emitted code won't change because of this), but Linux was getting much worse code that was incorrect when using big frames (such as test-suite's lencod). I'll also fix this in a later patch, it will probably require a peephole so that FastISel doesn't rematerialize frame pointers back-to-back. The test changes are straightforward, similar to: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20130513/174279.html They also add a vararg test that got dropped in that change. I ran all of test-suite on A15 hardware with --optimize-option=-O0 and all the tests pass. llvm-svn: 182877
-
Bill Wendling authored
Not only does this break encapsulation, it's gross. llvm-svn: 182876
-
Sean Callanan authored
condition doesn't return a result, instead of blindly trying to use that result. <rdar://problem/14009519> llvm-svn: 182875
-
Rafael Espindola authored
llvm-svn: 182874
-
Jim Ingham authored
llvm-svn: 182873
-
Tim Northover authored
This allows rematerialization during register coalescing to handle more cases involving operations like SUBREG_TO_REG which might need to be rematerialized using sub-register indices. For example, code like: v1(GPR64):sub_32 = MOVZ something v2(GPR64) = COPY v1(GPR64) should be convertable to: v2(GPR64):sub_32 = MOVZ something but previously we just gave up in places like this llvm-svn: 182872
-
Argyrios Kyrtzidis authored
[libclang] For "@import .." code-completion results, associate a CXCursor_ModuleImportDecl cursor instead of CXCursor_NotImplemented. llvm-svn: 182871
-