forked from OSchip/llvm-project
Fix MSVC build broken by r207580
Seems MSVC wants to be able to codegen inline-definitions of virtual functions even in TUs that don't define the key function - and it's well within its rights to do so. llvm-svn: 207581
This commit is contained in:
parent
7a1e775a7e
commit
35907d8e23
|
@ -222,10 +222,7 @@ public:
|
|||
/// needed by another object.
|
||||
///
|
||||
/// MCJIT will take ownership of the ObjectFile.
|
||||
virtual void addObjectFile(std::unique_ptr<object::ObjectFile> O) {
|
||||
llvm_unreachable(
|
||||
"ExecutionEngine subclass doesn't implement addObjectFile.");
|
||||
}
|
||||
virtual void addObjectFile(std::unique_ptr<object::ObjectFile> O);
|
||||
|
||||
/// addArchive - Add an Archive to the execution engine.
|
||||
///
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include "llvm/IR/Module.h"
|
||||
#include "llvm/IR/Operator.h"
|
||||
#include "llvm/IR/ValueHandle.h"
|
||||
#include "llvm/Object/ObjectFile.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include "llvm/Support/DynamicLibrary.h"
|
||||
#include "llvm/Support/ErrorHandling.h"
|
||||
|
@ -121,6 +122,10 @@ char *ExecutionEngine::getMemoryForGV(const GlobalVariable *GV) {
|
|||
return GVMemoryBlock::Create(GV, *getDataLayout());
|
||||
}
|
||||
|
||||
void ExecutionEngine::addObjectFile(std::unique_ptr<object::ObjectFile> O) {
|
||||
llvm_unreachable("ExecutionEngine subclass doesn't implement addObjectFile.");
|
||||
}
|
||||
|
||||
bool ExecutionEngine::removeModule(Module *M) {
|
||||
for(SmallVectorImpl<Module *>::iterator I = Modules.begin(),
|
||||
E = Modules.end(); I != E; ++I) {
|
||||
|
|
Loading…
Reference in New Issue