X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FObject%2FCOFFObjectFile.cpp;h=717f019509bd7d8f2f515669f46837135b24df3a;hb=f359f7ef8c8cccea0c830308289fe7fe2c148bdc;hp=29ea0a1a79c33315c636c3e124ae2c40f6b10f2d;hpb=7d1772234399ff30d0144590ff8840a427137849;p=oota-llvm.git diff --git a/lib/Object/COFFObjectFile.cpp b/lib/Object/COFFObjectFile.cpp index 29ea0a1a79c..717f019509b 100644 --- a/lib/Object/COFFObjectFile.cpp +++ b/lib/Object/COFFObjectFile.cpp @@ -979,6 +979,10 @@ COFFObjectFile::getRelocationValueString(DataRefImpl Rel, return object_error::success; } +bool COFFObjectFile::isRelocatableObject() const { + return !DataDirectory; +} + bool ImportDirectoryEntryRef:: operator==(const ImportDirectoryEntryRef &Other) const { return ImportTable == Other.ImportTable && Index == Other.Index;