[RuntimeDyld] Remove the brace initialization that was introduced in r226341.
authorLang Hames <lhames@gmail.com>
Sat, 17 Jan 2015 00:32:56 +0000 (00:32 +0000)
committerLang Hames <lhames@gmail.com>
Sat, 17 Jan 2015 00:32:56 +0000 (00:32 +0000)
Evidently MSVC doesn't like it.

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

lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp

index b0f44b1..8aa0ed7 100644 (file)
@@ -207,7 +207,7 @@ RuntimeDyldImpl::loadObjectImpl(const object::ObjectFile &Obj) {
         SymbolInfo::Visibility Vis =
           (Flags & SymbolRef::SF_Exported) ?
             SymbolInfo::Default : SymbolInfo::Hidden;
-        GlobalSymbolTable[Name] = {SectionID, SectOffset, Vis};
+        GlobalSymbolTable[Name] = SymbolInfo(SectionID, SectOffset, Vis);
       }
     }
     DEBUG(dbgs() << "\tType: " << SymType << " Name: " << Name << "\n");
@@ -482,7 +482,7 @@ void RuntimeDyldImpl::emitCommonSymbols(const ObjectFile &Obj,
     SymbolInfo::Visibility Vis =
       (Flags & SymbolRef::SF_Exported) ?
         SymbolInfo::Default : SymbolInfo::Hidden;
-    SymbolTable[Name.data()] = {SectionID, Offset, Vis};
+    SymbolTable[Name.data()] = SymbolInfo(SectionID, Offset, Vis);
     Offset += Size;
     Addr += Size;
   }