- Mar 20, 2014
-
-
Duncan P. N. Exon Smith authored
<rdar://problem/15943240> llvm-svn: 204301
-
Jordan Rose authored
Patch by Zach Davis! llvm-svn: 204300
-
Duncan P. N. Exon Smith authored
Currently we register instrumentation data at runtime to determine the bounds of the sections where the data lives. Soon we'll implement platform-specific linker magic to determine this at link time. Move this logic to a separate file, so that our build system can choose the correct platform-specific code. No functionality change intended. <rdar://problem/15943240> llvm-svn: 204299
-
Duncan P. N. Exon Smith authored
<rdar://problem/15943240> llvm-svn: 204298
-
Duncan P. N. Exon Smith authored
<rdar://problem/15943240> llvm-svn: 204297
-
Rui Ueyama authored
If the environment variable is defined and not empty, RoundTrip tests are run. The reason to move the tests behind the flag is because they are too slow to enable by default. LLD linking time on llvm-tblgen improved from 2m7s to 2.3s. About 60x faster now in this case. Differential Revision: http://llvm-reviews.chandlerc.com/D3126 llvm-svn: 204296
-
Jim Ingham authored
llvm-svn: 204295
-
Rafael Espindola authored
Given bar = foo + 4 .long bar MC would eat the 4. GNU as includes it in the relocation. The rule seems to be that a variable that defines a symbol is used in the relocation and one that does not define a symbol is evaluated and the result included in the relocation. Fixing this unfortunately required some other changes: * Since the variable is now evaluated, it would prevent the ELF writer from noticing the weakref marker the elf streamer uses. This patch then replaces that with a VariantKind in MCSymbolRefExpr. * Using VariantKind then requires us to look past other VariantKind to see .weakref bar,foo call bar@PLT doing this also fixes zed = foo +2 call zed@PLT so that is a good thing. * Looking past VariantKind means that the relocation selection has to use the fixup instead of the target. This is a reboot of the previous fixes for MC. I will watch the sanitizer buildbot and wait for a build before adding back the previous fixes. llvm-svn: 204294
-
Michael J. Spencer authored
llvm-svn: 204293
-
Joerg Sonnenberger authored
llvm-svn: 204292
-
Michael J. Spencer authored
With this all test-suite tests pass with lld on x86-64 Linux. llvm-svn: 204291
-
Joerg Sonnenberger authored
opcode is VAX. A function call pushes the number of arguments given onto the stack and "ret" will pop it automatically. The FDE of the caller contains the amount of stack space used for arguments (and possibly extra padding), so unwinding has to compensate for this when "returning" from a function. This is exactly the case when step() is done. The existing handling in unw_set_reg no longer makes sense. llvm-svn: 204290
-
Enrico Granata authored
Add NSMutableData to the list of types that the NSData formatter knows to represent llvm-svn: 204289
-
Jim Ingham authored
More recent compilers emit debug info for the length property of NSString, so the length will be correctly reported as NSUInteger. Adopt the test case to handle either possibility. llvm-svn: 204288
-
Jim Ingham authored
llvm-svn: 204287
-
Eric Christopher authored
This appears to trigger failures with optimization and function arguments somehow. This reverts commit r204277. llvm-svn: 204286
-
Rui Ueyama authored
InputElement::parse() may recursively call WinLinkDriver::parse() to handle .drectve section contents, and if /defaultlib option exists in the section, the driver will mutate the input graph to add a new input file to the graph. So the access to input graph needs to be protected with mutext. llvm-svn: 204285
-
Jim Ingham authored
I changed the logging test to just test that logging doesn't crash and does produce output. That's about all it is useful to test. llvm-svn: 204284
-
Jim Ingham authored
and not particularly useful. Skipping till we get a chance to make a test that actually tests something we care about. llvm-svn: 204283
-
Jim Ingham authored
llvm-svn: 204282
-
Jim Ingham authored
llvm-svn: 204281
-
Adrian Prantl authored
llvm-svn: 204280
-
Justin Bogner authored
llvm-svn: 204279
-
Duncan P. N. Exon Smith authored
llvm-svn: 204278
-
Eric Christopher authored
This commit moves us from a single range per subprogram to extending ranges if we are: a) In the same section, and b) In the same enclosing CU. This means we have more fine grained ranges for compile units, and fewer ranges overall when we have multiple functions in the same CU adjacent to each other in the object file. Also remove all of the earlier hacks around this functionality for function sections etc. Also update all of the testcases to take into account the merging functionality. llvm-svn: 204277
-
Duncan P. N. Exon Smith authored
llvm-svn: 204276
-
Matt Arsenault authored
llvm-svn: 204275
-
Matt Arsenault authored
llvm-svn: 204274
-
Matt Arsenault authored
v2: -Use correct opcode for DS_READ_64 llvm-svn: 204273
-
Matt Arsenault authored
llvm-svn: 204272
-
Matt Arsenault authored
The source and destination happen to be the same register. llvm-svn: 204271
-
Matt Arsenault authored
It isn't actually used now, and probably never will be, plus it makes tests less annoying. I also think SC prints GDS instructions as a separate instruction name. llvm-svn: 204270
-
Matt Arsenault authored
Also remove unused data fields from the DS_Load_Helper class. v2: - Merge fields for DS_WRITE llvm-svn: 204269
-
Duncan P. N. Exon Smith authored
Split implementation files along a uses-libc/shouldn't-use-libc boundary. - InstrProfiling.h is a shared header. - InstrProfiling.c provides an API to extract profiling data from the runtime, but avoids the use of libc. Currently this is a lie: __llvm_pgo_write_buffer() uses `FILE*` and related functions. It will be updated soon to write to a `char*` buffer instead. - InstrProfilingExtras.c provides a more convenient API for interfacing with the profiling runtime, but has logic that does (and will continue to) use libc. <rdar://problem/15943240> llvm-svn: 204268 -
Duncan P. N. Exon Smith authored
llvm-svn: 204267
-
Sebastian Pop authored
llvm-svn: 204265
-
Fariborz Jahanian authored
llvm-svn: 204264
-
Ben Langmuir authored
This name, while more verbose, plays more nicely with tools that use file extensions to determine file types. The existing spelling 'module.map' will continue to work, but the new spelling will take precedence. In frameworks, this new filename will only go in a new 'Modules' sub-directory. Similarly, add a module.private.modulemap corresponding to module_private.map. llvm-svn: 204261
-
David Majnemer authored
Introduced when I rebased my changes to use isReservedSectionNumber. llvm-svn: 204260
-
Simon Atanasyan authored
llvm-svn: 204259
-