[llvm] r226349 - [RuntimeDyld] Remove the brace initialization that was introduced in r226341.
Lang Hames
lhames at gmail.com
Fri Jan 16 16:32:57 PST 2015
Author: lhames
Date: Fri Jan 16 18:32:56 2015
New Revision: 226349
URL: http://llvm.org/viewvc/llvm-project?rev=226349&view=rev
Log:
[RuntimeDyld] Remove the brace initialization that was introduced in r226341.
Evidently MSVC doesn't like it.
Modified:
llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
Modified: llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp?rev=226349&r1=226348&r2=226349&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp Fri Jan 16 18:32:56 2015
@@ -207,7 +207,7 @@ RuntimeDyldImpl::loadObjectImpl(const ob
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(
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;
}
More information about the llvm-commits
mailing list