Move method out of line to make buildbot happy.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 9 Dec 2014 16:18:11 +0000 (16:18 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 9 Dec 2014 16:18:11 +0000 (16:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223781 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Object/IRObjectFile.h
lib/Object/IRObjectFile.cpp

index 10ea05ddf1f7913cfe6e45124d72e817450ab573..3a6edd0ab7c5a62387cc5686662d1b53d12c0215 100644 (file)
@@ -49,7 +49,7 @@ public:
   Module &getModule() {
     return *M;
   }
   Module &getModule() {
     return *M;
   }
-  std::unique_ptr<Module> takeModule() { return std::move(M); }
+  std::unique_ptr<Module> takeModule();
 
   static inline bool classof(const Binary *v) {
     return v->isIR();
 
   static inline bool classof(const Binary *v) {
     return v->isIR();
index 84b6c95f2c71be674ad9745dfa79324b164d3499..185b783e3501cb2d1150d9b364268db2c3d4c32d 100644 (file)
@@ -237,6 +237,8 @@ uint32_t IRObjectFile::getSymbolFlags(DataRefImpl Symb) const {
 
 GlobalValue *IRObjectFile::getSymbolGV(DataRefImpl Symb) { return getGV(Symb); }
 
 
 GlobalValue *IRObjectFile::getSymbolGV(DataRefImpl Symb) { return getGV(Symb); }
 
+std::unique_ptr<Module> IRObjectFile::takeModule() { return std::move(M); }
+
 basic_symbol_iterator IRObjectFile::symbol_begin_impl() const {
   Module::const_iterator I = M->begin();
   DataRefImpl Ret;
 basic_symbol_iterator IRObjectFile::symbol_begin_impl() const {
   Module::const_iterator I = M->begin();
   DataRefImpl Ret;