[lld] r226260 - [ELF] Make the unhandledReferenceType() protected method
Simon Atanasyan
simon at atanasyan.com
Fri Jan 16 00:58:03 PST 2015
Author: atanasyan
Date: Fri Jan 16 02:58:03 2015
New Revision: 226260
URL: http://llvm.org/viewvc/llvm-project?rev=226260&view=rev
Log:
[ELF] Make the unhandledReferenceType() protected method
No functional changes.
Modified:
lld/trunk/lib/ReaderWriter/ELF/TargetHandler.h
Modified: lld/trunk/lib/ReaderWriter/ELF/TargetHandler.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/TargetHandler.h?rev=226260&r1=226259&r2=226260&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/TargetHandler.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/TargetHandler.h Fri Jan 16 02:58:03 2015
@@ -45,11 +45,13 @@ public:
/// Constructor
TargetRelocationHandler(ELFLinkingContext &targetInfo)
: _context(targetInfo) {}
+ virtual ~TargetRelocationHandler() {}
virtual std::error_code applyRelocation(ELFWriter &, llvm::FileOutputBuffer &,
const lld::AtomLayout &,
const Reference &) const = 0;
+protected:
void unhandledReferenceType(const Atom &atom, const Reference &ref) const {
llvm::errs() << "Unhandled reference type in file " << atom.file().path()
<< ": reference from " << atom.name() << "+"
@@ -68,7 +70,6 @@ public:
llvm::report_fatal_error("unhandled reference type");
}
- virtual ~TargetRelocationHandler() {}
private:
ELFLinkingContext &_context;
};
More information about the llvm-commits
mailing list