1
0
mirror of https://github.com/c64scene-ar/llvm-6502.git synced 2025-04-22 00:37:49 +00:00

Fix build failure on windows

Add explicit constructor to struct instead of using brace initialization.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213389 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
David Peixotto 2014-07-18 16:41:58 +00:00
parent 12f33da20b
commit bb10524098
2 changed files with 3 additions and 1 deletions

@ -24,6 +24,8 @@ class MCStreamer;
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;

@ -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);
}