- Aug 19, 2014
-
-
Duncan P. N. Exon Smith authored
Implement `uselistorder` and `uselistorder_bb` assembly directives, which allow the use-list order to be recovered when round-tripping to assembly. This is the bulk of PR20515. llvm-svn: 216025
-
Duncan P. N. Exon Smith authored
llvm-svn: 216022
-
Rafael Espindola authored
Owning the buffer is somewhat inflexible. Some Binaries have sub Binaries (like Archive) and we had to create dummy buffers just to handle that. It is also a bad fit for IRObjectFile where the Module wants to own the buffer too. Keeping this ownership would make supporting IR inside native objects particularly painful. This patch focuses in lib/Object. If something elsewhere used to own an Binary, now it also owns a MemoryBuffer. This patch introduces a few new types. * MemoryBufferRef. This is just a pair of StringRefs for the data and name. This is to MemoryBuffer as StringRef is to std::string. * OwningBinary. A combination of Binary and a MemoryBuffer. This is needed for convenience functions that take a filename and return both the buffer and the Binary using that buffer. The C api now uses OwningBinary to avoid any change in semantics. I will start a new thread to see if we want to change it and how. llvm-svn: 216002
-
Rafael Espindola authored
* Use StringRef instead of std::string& * Return a std::unique_ptr<Module> instead of taking an optional module to write to (was not really used). * Use current comment style. * Use current naming convention. llvm-svn: 215989
-
Rafael Espindola authored
llvm-svn: 215967
-
Duncan P. N. Exon Smith authored
Call `verifyModule()` after parsing and after every transformation. Also convert some `DEBUG(dbgs())` to `errs()` to increase visibility into what's going on. llvm-svn: 215951
-
- Aug 18, 2014
-
-
Kevin Enderby authored
file with -macho, the Mach-O specific object file parser option. After some discussion I chose to do this implementation contained in the logic of llvm-objdump’s MachODump.cpp using a second disassembler for thumb when needed and with updates mostly contained in the MachOObjectFile class. llvm-svn: 215931
-
- Aug 17, 2014
-
-
Rafael Espindola authored
This matches the behavior of GNU objdump. llvm-svn: 215844
-
Rafael Espindola authored
It would prevent the display of a single byte instruction before a label. Patch by Steve King! llvm-svn: 215837
-
- Aug 14, 2014
-
-
Aaron Ballman authored
llvm-svn: 215643
-
- Aug 13, 2014
-
-
Rafael Espindola authored
llvm-svn: 215566
-
Benjamin Kramer authored
Add header guards to files that were missing guards. Remove #endif comments as they don't seem common in LLVM (we can easily add them back if we decide they're useful) Changes made by clang-tidy with minor tweaks. llvm-svn: 215558
-
- Aug 12, 2014
-
-
Tim Northover authored
llvm-svn: 215437
-
- Aug 11, 2014
-
-
Rafael Espindola authored
llvm-svn: 215378
-
Tim Northover authored
Third time lucky. This should finally fix the ARM (& MIPS, I think) bots. llvm-svn: 215349
-
- Aug 08, 2014
-
-
Rafael Espindola authored
llvm-svn: 215219
-
Rafael Espindola authored
llvm-svn: 215218
-
Tim Northover authored
llvm-svn: 215198
-
Tim Northover authored
ARM bots (& others, I think, now that I look) were failing because we were using incorrect printf-style format specifiers. They were wrong on almost any platform, actually, just mostly harmlessly so. llvm-svn: 215196
-
Eric Christopher authored
be deleted. This will be reapplied as soon as possible and before the 3.6 branch date at any rate. Approved by Jim Grosbach, Lang Hames, Rafael Espindola. This reverts commits r215111, 215115, 215116, 215117, 215136. llvm-svn: 215154
-
- Aug 07, 2014
-
-
Rafael Espindola authored
llvm-svn: 215116
-
Rafael Espindola authored
I am sure we will be finding bits and pieces of dead code for years to come, but this is a good start. Thanks to Lang Hames for making MCJIT a good replacement! llvm-svn: 215111
-
Kevin Enderby authored
Also make the disassembler created with the Mach-O parser (the -m option) pick up the Target specific attributes specified with -mattr option. llvm-svn: 215032
-
- Aug 05, 2014
-
-
Lang Hames authored
mode. This will cause -verify mode to report failure when RuntimeDyld encounters an internal error (e.g. overflows in relocation computations). Previously we had let these errors slip past unreported. llvm-svn: 214925
-
Rafael Espindola authored
This is mostly a cleanup, but it changes a fairly old behavior. Every "real" LTO user was already disabling the silly internalize pass and creating the internalize pass itself. The difference with this patch is for "opt -std-link-opts" and the C api. Now to get a usable behavior out of opt one doesn't need the funny looking command line: opt -internalize -disable-internalize -internalize-public-api-list=foo,bar -std-link-opts llvm-svn: 214919
-
- Aug 04, 2014
-
-
Eric Christopher authored
information and update all callers. No functional change. llvm-svn: 214781
-
- Aug 02, 2014
-
-
Duncan P. N. Exon Smith authored
Updated `verify-uselistorder` to more than double the number of use-list orders it checks. - Every time it verifies an order, it then reverses the order and verifies again. - It now verifies the initial order, before running any shuffles. Changed the default to `-num-shuffles=1`, since this is already four checks, and after r214584 shuffling is guaranteed to make a new order. This is part of PR5680. llvm-svn: 214596
-
Duncan P. N. Exon Smith authored
llvm-svn: 214595
-
Duncan P. N. Exon Smith authored
`shuffleUseLists()` is only used in `verify-uselistorder`, so move it there to avoid bloating other executables. As a drive-by, update some of the header docs. This is part of PR5680. llvm-svn: 214592
-
Duncan P. N. Exon Smith authored
llvm-svn: 214587
-
- Aug 01, 2014
-
-
Rafael Espindola authored
Also fix the error handling. No testcaes, issue found by inspection. Thanks to David Blaikie for the suggestion. llvm-svn: 214535
-
Rafael Espindola authored
llvm-svn: 214533
-
Rafael Espindola authored
It was never exported, so no functionality change. llvm-svn: 214519
-
Rafael Espindola authored
Instead of moving out the data in a ErrorOr<std::unique_ptr<Foo>>, get a reference to it. Thanks to David Blaikie for the suggestion. llvm-svn: 214516
-
Tim Northover authored
llvm-svn: 214509
-
Sylvestre Ledru authored
"Create a default symver on Linux like ELF OSes." Fails the build under Debian with ld.gold: /usr/bin/ld.gold: --default-symver: unknown option llvm-svn: 214482
-
- Jul 31, 2014
-
-
Rafael Espindola authored
This opens the way for a few std::uinque_ptr cleanups. llvm-svn: 214439
-
Hans Wennborg authored
llvm-svn: 214435
-
Rafael Espindola authored
This makes using a std::unique_ptr in the caller more convenient. llvm-svn: 214433
-
Rafael Espindola authored
Thanks to Justin Bogner for noticing it. llvm-svn: 214426
-