[lld] r197019 - [PECOFF] Remove enum for Data Directory atom which no longer exist.
Rui Ueyama
ruiu at google.com
Wed Dec 11 00:53:24 PST 2013
Author: ruiu
Date: Wed Dec 11 02:53:24 2013
New Revision: 197019
URL: http://llvm.org/viewvc/llvm-project?rev=197019&view=rev
Log:
[PECOFF] Remove enum for Data Directory atom which no longer exist.
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=197019&r1=197018&r2=197019&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp (original)
+++ lld/trunk/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp Wed Dec 11 02:53:24 2013
@@ -68,8 +68,7 @@ class Chunk {
public:
enum Kind {
kindHeader,
- kindSection,
- kindDataDirectory
+ kindSection
};
explicit Chunk(Kind kind) : _kind(kind), _size(0) {}
@@ -206,8 +205,7 @@ public:
}
static bool classof(const Chunk *c) {
- Kind kind = c->getKind();
- return kind == kindSection || kind == kindDataDirectory;
+ return c->getKind() == kindSection;
}
protected:
More information about the llvm-commits
mailing list