mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
llvm-mc pass through SourceMgr to MCContext.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149091 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3662e5ce70
commit
93cd59aea8
@ -383,7 +383,7 @@ static int AssembleInput(const char *ProgName) {
|
|||||||
// FIXME: This is not pretty. MCContext has a ptr to MCObjectFileInfo and
|
// FIXME: This is not pretty. MCContext has a ptr to MCObjectFileInfo and
|
||||||
// MCObjectFileInfo needs a MCContext reference in order to initialize itself.
|
// MCObjectFileInfo needs a MCContext reference in order to initialize itself.
|
||||||
OwningPtr<MCObjectFileInfo> MOFI(new MCObjectFileInfo());
|
OwningPtr<MCObjectFileInfo> MOFI(new MCObjectFileInfo());
|
||||||
MCContext Ctx(*MAI, *MRI, MOFI.get());
|
MCContext Ctx(*MAI, *MRI, MOFI.get(), &SrcMgr);
|
||||||
MOFI->InitMCObjectFileInfo(TripleName, RelocModel, CMModel, Ctx);
|
MOFI->InitMCObjectFileInfo(TripleName, RelocModel, CMModel, Ctx);
|
||||||
|
|
||||||
if (SaveTempLabels)
|
if (SaveTempLabels)
|
||||||
|
Loading…
Reference in New Issue
Block a user