Reapply [FastISel] Let the target decide first if it wants to materialize a constant...
[oota-llvm.git] / lib / MC / ConstantPools.cpp
index 41ce68bfe0a581e9ce559adf16201baec6f717cc..c4cea604b14626af1906370992c3856c5448b0da 100644 (file)
@@ -39,7 +39,7 @@ const MCExpr *ConstantPool::addEntry(const MCExpr *Value, MCContext &Context,
                                      unsigned Size) {
   MCSymbol *CPEntryLabel = Context.CreateTempSymbol();
 
-  Entries.push_back( { CPEntryLabel, Value, Size } );
+  Entries.push_back(ConstantPoolEntry(CPEntryLabel, Value, Size));
   return MCSymbolRefExpr::Create(CPEntryLabel, Context);
 }