- Jan 16, 2013
-
-
Peter Collingbourne authored
In r143502, we renamed getHostTriple() to getDefaultTargetTriple() as part of work to allow the user to supply a different default target triple at configure time. This change also affected the JIT. However, it is inappropriate to use the default target triple in the JIT in most circumstances because this will not necessarily match the current architecture used by the process, leading to illegal instruction and other such errors at run time. Introduce the getProcessTriple() function for use in the JIT and its clients, and cause the JIT to use it. On architectures with a single bitness, the host and process triples are identical. On other architectures, the host triple represents the architecture of the host CPU, while the process triple represents the architecture used by the host CPU to interpret machine code within the current process. For example, when executing 32-bit code on a 64-bit Linux machine, the host triple may be 'x86_64-unknown-linux-gnu', while the process triple may be 'i386-unknown-linux-gnu'. This fixes JIT for the 32-on-64-bit (and vice versa) build on non-Apple platforms. Differential Revision: http://llvm-reviews.chandlerc.com/D254 llvm-svn: 172627
-
Reed Kotler authored
Waiting for new llvm attribute code for the next step. llvm-svn: 172626
-
Argyrios Kyrtzidis authored
set on the cursor; return a null type in such a case. llvm-svn: 172625
-
Daniel Jasper authored
Before: Constructor() : a(a), // comment a(a) {} After: Constructor() : a(a), // comment a(a) {} Needed this as a quick fix. Will add more tests for this in a future commit. llvm-svn: 172624
-
Argyrios Kyrtzidis authored
Patch by Enea Zaffanella! llvm-svn: 172623
-
Eli Bendersky authored
llvm-svn: 172622
-
Daniel Jasper authored
We used to incorrectly parse aaaaaa ? aaaaaa(aaaaaa) : aaaaaaaa; Due to an l_paren being followed by a colon, we assumed it to be part of a constructor initializer. Thus, we never found the colon belonging to the conditional expression, marked the line as bing incorrect and did not format it. llvm-svn: 172621
-
Argyrios Kyrtzidis authored
Previously we would serialize the macro redefinitions as a list, part of the identifier, and try to chain them together across modules individually without having the info that they were already chained at definition time. Change this by serializing the macro redefinition chain and then try to synthesize the chain parts across modules. This allows us to correctly pinpoint when 2 different definitions are ambiguous because they came from unrelated modules. Fixes bogus "ambiguous expansion of macro" warning when a macro in a PCH is redefined without undef'ing it first. rdar://13016031 llvm-svn: 172620
-
Daniel Jasper authored
Before: int x = ** a; After: int x = **a; llvm-svn: 172619
-
Daniel Jasper authored
Various reasons seem to speak against it, so I am disabling this for now. Changed tests to still test this option. llvm-svn: 172618
-
Daniel Jasper authored
"Bin-packing" here means allowing multiple parameters on one line, if a function call/declaration is spread over multiple lines. This is required by the Chromium style guide and probably desired for the Google style guide. Not making changes to LLVM style as I don't have enough data. With this enabled, we format stuff like: aaaaaaaaaaaaaaa(aaaaaaaaaa, aaaaaaaaaa, aaaaaaaaaaaaaaaaaaaaaaa).aaaaaaaaaaaaaaaaaa(); llvm-svn: 172617
-
Manuel Klimek authored
llvm-svn: 172616
-
Evgeniy Stepanov authored
llvm-svn: 172615
-
Evgeniy Stepanov authored
llvm-svn: 172614
-
Dmitry Vyukov authored
llvm-svn: 172613
-
Benjamin Kramer authored
llvm-svn: 172612
-
Benjamin Kramer authored
Should fix the arm buildbot (which only builds the arm target). llvm-svn: 172611
-
Alexey Samsonov authored
ASan: wrap mapping scale and offset in a struct and make it a member of ASan passes. Add test for non-default mapping scale and offset. No functionality change llvm-svn: 172610
-
Benjamin Kramer authored
Without a triple opt falls back to NoTTI which comes closer to LSR's pre-TTI behavior. llvm-svn: 172609
-
Manuel Klimek authored
Leave a quick "// Uncomment this." hint to enable the debug output in tests. FIXME: figure out whether we want to enable debug command line handling for all tests. llvm-svn: 172608
-
Alexander Kornienko authored
llvm-svn: 172607
-
Alexander Kornienko authored
llvm-svn: 172606
-
Alexey Samsonov authored
llvm-svn: 172605
-
Daniel Jasper authored
This makes the tedious fitsIntoLimit() method unnecessary and I can replace one hack (constructor initializers) by a slightly better hack. Furthermore, this will enable calculating whether a certain part of a line fits into the limit for future modifications. llvm-svn: 172604
-
Kostya Serebryany authored
[asan] asan_allocator2: fix the memalign handling (clear the first word of allocated chunk in case there is an old memalign magic) llvm-svn: 172603
-
Daniel Jasper authored
It was quite convoluted leading to us accidentally introducing O(N^2) complexity while copying from UnwrappedLine to AnnotatedLine. We might still want to improve the datastructure in AnnotatedLine (most importantly not put them in a vector where they need to be copied on vector resizing but that will be done as a follow-up. This fixes most of the regression in llvm.org/PR14959. No formatting changes intended. llvm-svn: 172602
-
Daniel Jasper authored
Before: vector<::Type> t; After: vector< ::Type> t; llvm-svn: 172601
-
Daniel Jasper authored
Before: if (a) // This comment confused clang-format f(); After: if (a) // No more confusion f(); llvm-svn: 172600
-
Michael Gottesman authored
[ObjCARC] Turn off ignoring unwind edges in ObjCARC when -fno-objc-arc-exception is enabled due to it's affect on correctness. Specifically according to the semantics of ARC -fno-objc-arc-exception simply states that it is expected that the unwind path out of a call *MAY* not release objects. Thus we can have the situation where a release gets moved into a catch block which we ignore when we remove a retain/release pair resulting in (even though we assume the program is exiting anyways) the cleanup code path potentially blowing up before program exit. llvm-svn: 172599
-
NAKAMURA Takumi authored
clang/test/Driver/darwin-sdkroot.c: Suppress this on msys bash, to introduce the feature "shell-preserves-root". MSYS transforms '/' to 'X:/mingwroot/'. llvm-svn: 172598
-
Anna Zaks authored
assignment llvm-svn: 172597
-
Anna Zaks authored
llvm-svn: 172596
-
Anna Zaks authored
llvm-svn: 172595
-
Jack Carter authored
llvm-svn: 172594
-
Greg Clayton authored
SDKROOT should only be unset/cleared for ARM builds. The first fix by Bob Wilson removed it for ARM for both configure and make, but only unset it for desktop configure, not for the make. My next fix unset/cleared it all the time. This fix only unset/clears it for ARM builds. llvm-svn: 172593
-
Douglas Gregor authored
users can explicitly enable/disable modules autolinking. llvm-svn: 172592
-
Eric Christopher authored
order. Describe static data members to metadata using new interfaces. Part of PR14471. Patch by Paul Robinson! llvm-svn: 172591
-
Eric Christopher authored
of a class. Emit static data member declarations and definitions through correctly. Part of PR14471. Patch by Paul Robinson! llvm-svn: 172590
-
Eric Christopher authored
Part of PR14471. Patch by Paul Robinson. llvm-svn: 172589
-
Dmitri Gribenko authored
llvm-svn: 172588
-