mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
llvm-mc pass through SourceMgr to MCContext.
llvm-svn: 149091
This commit is contained in:
parent
fbf782200a
commit
28639d4913
@ -383,7 +383,7 @@ static int AssembleInput(const char *ProgName) {
|
||||
// FIXME: This is not pretty. MCContext has a ptr to MCObjectFileInfo and
|
||||
// MCObjectFileInfo needs a MCContext reference in order to initialize itself.
|
||||
OwningPtr<MCObjectFileInfo> MOFI(new MCObjectFileInfo());
|
||||
MCContext Ctx(*MAI, *MRI, MOFI.get());
|
||||
MCContext Ctx(*MAI, *MRI, MOFI.get(), &SrcMgr);
|
||||
MOFI->InitMCObjectFileInfo(TripleName, RelocModel, CMModel, Ctx);
|
||||
|
||||
if (SaveTempLabels)
|
||||
|
Loading…
Reference in New Issue
Block a user