diff options
author | Shankar Easwaran <shankare@codeaurora.org> | 2013-10-29 05:12:14 +0000 |
---|---|---|
committer | Shankar Easwaran <shankare@codeaurora.org> | 2013-10-29 05:12:14 +0000 |
commit | 2bc24928d36531aeea52c6563a125adb22c203bf (patch) | |
tree | b7fd4a401d972e6c946bc2ba3309ca99924b2070 /lld/lib/Passes/GOTPass.cpp | |
parent | 3aca58f135b593a66c4c5680a4ce3b97d6531bdf (diff) | |
download | bcm5719-llvm-2bc24928d36531aeea52c6563a125adb22c203bf.tar.gz bcm5719-llvm-2bc24928d36531aeea52c6563a125adb22c203bf.zip |
[PassManager] add ReaderWriter{Native,YAML} to the Driver.
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
Diffstat (limited to 'lld/lib/Passes/GOTPass.cpp')
-rw-r--r-- | lld/lib/Passes/GOTPass.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lld/lib/Passes/GOTPass.cpp b/lld/lib/Passes/GOTPass.cpp index 1bb6e4cee4a..b9a6f73e5b1 100644 --- a/lld/lib/Passes/GOTPass.cpp +++ b/lld/lib/Passes/GOTPass.cpp @@ -67,12 +67,12 @@ findGOTAtom(const Atom *target, } } // end anonymous namespace -void GOTPass::perform(MutableFile &mergedFile) { +void GOTPass::perform(std::unique_ptr<MutableFile> &mergedFile) { // Use map so all pointers to same symbol use same GOT entry. llvm::DenseMap<const Atom*, const DefinedAtom*> targetToGOT; // Scan all references in all atoms. - for(const DefinedAtom *atom : mergedFile.defined()) { + for (const DefinedAtom *atom : mergedFile->defined()) { for (const Reference *ref : *atom) { // Look at instructions accessing the GOT. bool canBypassGOT; @@ -102,7 +102,7 @@ void GOTPass::perform(MutableFile &mergedFile) { // add all created GOT Atoms to master file for (auto &it : targetToGOT) { - mergedFile.addAtom(*it.second); + mergedFile->addAtom(*it.second); } } } |