Add explicit constructor to struct instead of using brace initialization.
llvm-svn: 213389
class MCSymbol;
struct ConstantPoolEntry {
+ ConstantPoolEntry(MCSymbol *L, const MCExpr *Val, unsigned Sz)
+ : Label(L), Value(Val), Size(Sz) {}
MCSymbol *Label;
const MCExpr *Value;
unsigned Size;
unsigned Size) {
MCSymbol *CPEntryLabel = Context.CreateTempSymbol();
- Entries.push_back( { CPEntryLabel, Value, Size } );
+ Entries.push_back(ConstantPoolEntry(CPEntryLabel, Value, Size));
return MCSymbolRefExpr::Create(CPEntryLabel, Context);
}