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:
parent
12f33da20b
commit
bb10524098
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user