X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FMC%2FMCAtom.cpp;h=bc353cdcf65d4bf239c866b749a43e7566a18867;hb=60e425e99ba7ef05b7a52c7068a67c6baa25da38;hp=17a74687e1a12739a46089b138a60d40557a9f85;hpb=aeb2bbcb6d4f13d0032d57fd1cb1a92da2acd01e;p=oota-llvm.git diff --git a/lib/MC/MCAtom.cpp b/lib/MC/MCAtom.cpp index 17a74687e1a..bc353cdcf65 100644 --- a/lib/MC/MCAtom.cpp +++ b/lib/MC/MCAtom.cpp @@ -14,6 +14,9 @@ using namespace llvm; +// Pin the vtable to this file. +void MCAtom::anchor() {} + void MCAtom::remap(uint64_t NewBegin, uint64_t NewEnd) { Parent->remap(this, NewBegin, NewEnd); } @@ -44,7 +47,7 @@ void MCAtom::remapForSplit(uint64_t SplitPt, void MCDataAtom::addData(const MCData &D) { Data.push_back(D); - if (Data.size() > Begin - End) + if (Data.size() > End + 1 - Begin) remap(Begin, End + 1); }