[lld] r196897 - [PECOFF] Make more member functions non-virtual.
Rui Ueyama
ruiu at google.com
Tue Dec 10 01:02:06 PST 2013
Author: ruiu
Date: Tue Dec 10 03:02:00 2013
New Revision: 196897
URL: http://llvm.org/viewvc/llvm-project?rev=196897&view=rev
Log:
[PECOFF] Make more member functions non-virtual.
Modified:
lld/trunk/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp
Modified: lld/trunk/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp?rev=196897&r1=196896&r2=196897&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp (original)
+++ lld/trunk/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp Tue Dec 10 03:02:00 2013
@@ -74,11 +74,11 @@ public:
explicit Chunk(Kind kind) : _kind(kind), _size(0), _align(1) {}
virtual ~Chunk() {};
virtual void write(uint8_t *buffer) = 0;
-
- virtual uint64_t fileOffset() const { return _fileOffset; }
virtual uint64_t size() const { return _size; }
- virtual uint64_t align() const { return _align; }
- virtual void setFileOffset(uint64_t fileOffset) { _fileOffset = fileOffset; }
+
+ uint64_t align() const { return _align; }
+ uint64_t fileOffset() const { return _fileOffset; }
+ void setFileOffset(uint64_t fileOffset) { _fileOffset = fileOffset; }
Kind getKind() const { return _kind; }
protected:
More information about the llvm-commits
mailing list