summaryrefslogtreecommitdiffstats
path: root/lld/docs/Readers.rst
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2015-01-15 04:34:31 +0000
committerRui Ueyama <ruiu@google.com>2015-01-15 04:34:31 +0000
commitdf230b21e3c74b0a056db843978500b312f36025 (patch)
tree724728d9f1f973fa796d2e1fef632b6a6260e0f5 /lld/docs/Readers.rst
parent6725a83e84a5e6e6ebc8db6fe9199a431e045d79 (diff)
downloadbcm5719-llvm-df230b21e3c74b0a056db843978500b312f36025.tar.gz
bcm5719-llvm-df230b21e3c74b0a056db843978500b312f36025.zip
Re-commit r225674: Convert other drivers to use WrapperNode.
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
Diffstat (limited to 'lld/docs/Readers.rst')
-rw-r--r--lld/docs/Readers.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/lld/docs/Readers.rst b/lld/docs/Readers.rst
index 6ad58e0f848..6424de93e0c 100644
--- a/lld/docs/Readers.rst
+++ b/lld/docs/Readers.rst
@@ -66,7 +66,7 @@ Readers are factories
---------------------
The linker will usually only instantiate your Reader once. That one Reader will
-have its parseFile() method called many times with different input files.
+have its loadFile() method called many times with different input files.
To support multithreaded linking, the Reader may be parsing multiple input
files in parallel. Therefore, there should be no parsing state in you Reader
object. Any parsing state should be in ivars of your File subclass or in
@@ -74,8 +74,8 @@ some temporary object.
The key method to implement in a reader is::
- virtual error_code parseFile(LinkerInput &input,
- std::vector<std::unique_ptr<File>> &result);
+ virtual error_code loadFile(LinkerInput &input,
+ std::vector<std::unique_ptr<File>> &result);
It takes a memory buffer (which contains the contents of the object file
being read) and returns an instantiated lld::File object which is
OpenPOWER on IntegriCloud