Fix the MSVC build with the new Orc JIT APIs

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226949 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Kleckner
2015-01-23 22:25:47 +00:00
parent cf990541a0
commit d09c631f07
2 changed files with 9 additions and 3 deletions

View File

@@ -129,7 +129,7 @@ public:
setDataLayout(this->TM->getSubtargetImpl()->getDataLayout());
}
void addModule(std::unique_ptr<Module> M) {
void addModule(std::unique_ptr<Module> M) override {
// If this module doesn't have a DataLayout attached then attach the
// default.
@@ -258,7 +258,7 @@ private:
const ObjListT &Objects,
const LoadedObjInfoListT &Infos) const {
M.UnfinalizedSections[H] = std::move(M.SectionsAllocatedSinceLastLoad);
M.SectionsAllocatedSinceLastLoad = {};
M.SectionsAllocatedSinceLastLoad = SectionAddrSet{};
assert(Objects.size() == Infos.size() &&
"Incorrect number of Infos for Objects.");
for (unsigned I = 0; I < Objects.size(); ++I)