- Jan 30, 2015
-
-
Rui Ueyama authored
We have a DEBUG_TYPE macro for the same debug string already at the beginning of the file. llvm-svn: 227551
-
Rui Ueyama authored
SimpleFileWrapper was a class to wrap an existing (possibly non-mutable) file as a mutable file. We used instances of the class in RoundTrip* passes, because the passes convert mutable files to non-mutable files, and we needed to convert them back to mutable. That feature can be implemented without defining a new class. Generally speaking, if we can implement a feature without defining a class and using only public interface of exsiting classes, that's preferred way to do that. And this is the case. llvm-svn: 227549
-
Rui Ueyama authored
llvm-svn: 227536
-
- Jan 21, 2015
-
-
Greg Fitzgerald authored
Before this patch there was a cyclic dependency between lldCore and lldReaderWriter. Only lldConfig could be built as a shared library. * Moved Reader and Writer base classes into lldCore. * The following shared libraries can now be built: lldCore lldYAML lldNative lldPasses lldReaderWriter Differential Revision: http://reviews.llvm.org/D7105 From: Greg Fitzgerald <garious@gmail.com> llvm-svn: 226732
-
- Jan 15, 2015
-
-
Rui Ueyama authored
The original commit had an issue with Mac OS dylib files. It didn't handle fat binary dylib files correctly. This patch includes a fix. A test for that case has already been committed in r225764. llvm-svn: 226123
-
- Jan 14, 2015
-
-
Rui Ueyama authored
r225764 broke a basic functionality on Mac OS. This change reverts r225764, r225766, r225767, r225769, r225814, r225816, r225829, and r225832. llvm-svn: 225859
-
- Jan 13, 2015
-
-
Rui Ueyama authored
llvm-svn: 225764
-
- Dec 12, 2014
-
-
Rui Ueyama authored
The documentation of parseFile() said that "the resulting File object may take ownership of the MemoryBuffer." So, whether or not the ownership of a MemoryBuffer would be taken was not clear. A FileNode (a subclass of InputElement, which is being deprecated) keeps the ownership if a File doesn't take it. This patch makes File always take the ownership of a buffer. Buffers lifespan is not always the same as File instances. Files are able to deallocate buffers after parsing the contents. llvm-svn: 224113
-
- Oct 18, 2014
-
-
Shankar Easwaran authored
llvm-svn: 220131
-
- Jul 06, 2014
-
-
Rafael Espindola authored
llvm-svn: 212407
-
- Jun 12, 2014
-
-
Rafael Espindola authored
llvm-svn: 210785
-
- Jun 11, 2014
-
-
Rui Ueyama authored
Because the files in Core actually depend on these files. Differential Revision: http://reviews.llvm.org/D4000 llvm-svn: 210710
-
- Jun 03, 2014
-
-
Rui Ueyama authored
FileToMutable is what this class does, but this class (or, to be precise, an instance of this class) is a wrapper of the other SimpleFile. It's odd that the class was named like a function. llvm-svn: 210089
-
- Apr 22, 2014
-
-
Chandler Carruth authored
definition below all of the header #include lines, LLD edition. IF you want to know more details about this, you can see the recent commits to Debug.h in LLVM. This is just the LLD segment of a cleanup I'm doing globally for this macro. llvm-svn: 206851
-
- Mar 13, 2014
-
-
Ahmed Charles authored
This results in some simplifications to the code where an OwningPtr had to be used with the previous api and then ownership moved to a unique_ptr for the rest of lld. llvm-svn: 203809
-
- Mar 03, 2014
-
-
Ahmed Charles authored
Allows removing #include's in LLVM while switching to std::unique_ptr. llvm-svn: 202679
-
- Dec 20, 2013
-
-
Rui Ueyama authored
llvm-svn: 197788
-
- Dec 19, 2013
-
-
Nick Kledzik authored
llvm-svn: 197732
-
Nick Kledzik authored
The main changes are in: include/lld/Core/Reference.h include/lld/ReaderWriter/Reader.h Everything else is details to support the main change. 1) Registration based Readers Previously, lld had a tangled interdependency with all the Readers. It would have been impossible to make a streamlined linker (say for a JIT) which just supported one file format and one architecture (no yaml, no archives, etc). The old model also required a LinkingContext to read an object file, which would have made .o inspection tools awkward. The new model is that there is a global Registry object. You programmatically register the Readers you want with the registry object. Whenever you need to read/parse a file, you ask the registry to do it, and the registry tries each registered reader. For ease of use with the existing lld code base, there is one Registry object inside the LinkingContext object. 2) Changing kind value to be a tuple Beside Readers, the registry also keeps track of the mapping for Reference Kind values to and from strings. Along with that, this patch also fixes an ambiguity with the previous Reference::Kind values. The problem was that we wanted to reuse existing relocation type values as Reference::Kind values. But then how can the YAML write know how to convert a value to a string? The fix is to change the 32-bit Reference::Kind into a tuple with an 8-bit namespace (e.g. ELF, COFFF, etc), an 8-bit architecture (e.g. x86_64, PowerPC, etc), and a 16-bit value. This tuple system allows conversion to and from strings with no ambiguities. llvm-svn: 197727
-
- Nov 19, 2013
-
-
Rui Ueyama authored
llvm-svn: 195062
-
- Nov 15, 2013
-
-
Rui Ueyama authored
llvm-svn: 194746
-
- Nov 05, 2013
-
-
Rui Ueyama authored
llvm-svn: 194037
-
- Oct 29, 2013
-
-
Shankar Easwaran authored
Enable this for the following flavors a) core b) gnu c) darwin Its disabled for the flavor PECOFF. Convenient markers are added with FIXME comments in the Driver that would be removed and code removed from each flavor. llvm-svn: 193585
-
- Oct 24, 2013
-
-
Rui Ueyama authored
The patch have completely broken COFF port and disabled many tests. This also reverts r193302 (comment fix). llvm-svn: 193362
-
Shankar Easwaran authored
llvm-svn: 193302
-
Shankar Easwaran authored
Disable tests to be run with REQUIRES: disable. Note disable is not added to the config by the test runner Mkaefiles, so essentially disables the test. Code changes would be required to fix these tests :- test/darwin/hello-world.objtxt test/elf/check.test test/elf/phdr.test test/elf/ppc.test test/elf/undef-from-main-dso.test test/elf/X86_64/note-sections-ro_plus_rw.test test/pecoff/alignment.test test/pecoff/base-reloc.test test/pecoff/bss-section.test test/pecoff/drectve.test test/pecoff/dynamic.test test/pecoff/dynamicbase.test test/pecoff/entry.test test/pecoff/hello.test test/pecoff/imagebase.test test/pecoff/importlib.test test/pecoff/lib.test test/pecoff/multi.test test/pecoff/reloc.test test/pecoff/weak-external.test llvm-svn: 193300
-