diff options
author | Rui Ueyama <ruiu@google.com> | 2015-03-09 22:18:51 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2015-03-09 22:18:51 +0000 |
commit | bf3ac0b8785e67c879dad0bf1cd1f5bb624dbb0a (patch) | |
tree | d4d194a4b2e45bd8000246e1cde83766d8057afc /lld/lib/ReaderWriter/PECOFF/Pass.cpp | |
parent | 4f4ef15ade487778e6b290e7ad91bd293662c78d (diff) | |
download | bcm5719-llvm-bf3ac0b8785e67c879dad0bf1cd1f5bb624dbb0a.tar.gz bcm5719-llvm-bf3ac0b8785e67c879dad0bf1cd1f5bb624dbb0a.zip |
Remove COFFReference and use SimpleReference instead.
SimpleReference, which is defined in Core, provides the same functionality
as COFFReference does, so we don't need a custom class.
llvm-svn: 231715
Diffstat (limited to 'lld/lib/ReaderWriter/PECOFF/Pass.cpp')
-rw-r--r-- | lld/lib/ReaderWriter/PECOFF/Pass.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/lib/ReaderWriter/PECOFF/Pass.cpp b/lld/lib/ReaderWriter/PECOFF/Pass.cpp index 89b63e90ec3..ed731984e37 100644 --- a/lld/lib/ReaderWriter/PECOFF/Pass.cpp +++ b/lld/lib/ReaderWriter/PECOFF/Pass.cpp @@ -19,8 +19,8 @@ namespace pecoff { static void addReloc(COFFBaseDefinedAtom *atom, const Atom *target, size_t offsetInAtom, Reference::KindArch arch, Reference::KindValue relType) { - atom->addReference(llvm::make_unique<COFFReference>( - target, offsetInAtom, relType, arch)); + atom->addReference(llvm::make_unique<SimpleReference>( + Reference::KindNamespace::COFF, arch, relType, offsetInAtom, target, 0)); } void addDir64Reloc(COFFBaseDefinedAtom *atom, const Atom *target, |