Move virtual method out of line.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 1 Aug 2014 18:49:24 +0000 (18:49 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 1 Aug 2014 18:49:24 +0000 (18:49 +0000)
Should fix the MSVC build.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214539 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ExecutionEngine/ExecutionEngine.h
lib/ExecutionEngine/ExecutionEngine.cpp

index c367040cd71749a8f23e15a27dc57e8f54b1439b..e3ef104aea8493d237458e34d9c7134fdc52bd6f 100644 (file)
@@ -196,9 +196,7 @@ public:
   /// resolve external symbols in objects it is loading.  If a symbol is found
   /// in the Archive the contained object file will be extracted (in memory)
   /// and loaded for possible execution.
-  virtual void addArchive(std::unique_ptr<object::Archive> A) {
-    llvm_unreachable("ExecutionEngine subclass doesn't implement addArchive.");
-  }
+  virtual void addArchive(std::unique_ptr<object::Archive> A);
 
   //===--------------------------------------------------------------------===//
 
index ce20a02216f7eff7aa2f7b0c062ab3ec32a21fc9..0135a5285e7dad52d55c5c86a8d5b82dbbb2911d 100644 (file)
@@ -125,6 +125,10 @@ void ExecutionEngine::addObjectFile(std::unique_ptr<object::ObjectFile> O) {
   llvm_unreachable("ExecutionEngine subclass doesn't implement addObjectFile.");
 }
 
+void ExecutionEngine::addArchive(std::unique_ptr<object::Archive> A) {
+  llvm_unreachable("ExecutionEngine subclass doesn't implement addArchive.");
+}
+
 bool ExecutionEngine::removeModule(Module *M) {
   for(SmallVectorImpl<Module *>::iterator I = Modules.begin(),
         E = Modules.end(); I != E; ++I) {