diff options
author | Jim Grosbach <grosbach@apple.com> | 2012-02-02 17:54:07 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2012-02-02 17:54:07 +0000 |
commit | 6a9a6d22d73ffb7cf311df036ad4a305c4fea65a (patch) | |
tree | f1e7b36a73bdf112607fe906d6dcb93045f6f6fa /tools | |
parent | 89651eaf4170168cac2f34f2738e3d58fc38bbf1 (diff) |
Pass the SourceMgr to the MCContext for cc1as.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149608 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/driver/cc1as_main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/driver/cc1as_main.cpp b/tools/driver/cc1as_main.cpp index 8ddcc47896..14ff1e03ac 100644 --- a/tools/driver/cc1as_main.cpp +++ b/tools/driver/cc1as_main.cpp @@ -282,7 +282,7 @@ static bool ExecuteAssembler(AssemblerInvocation &Opts, // 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); // FIXME: Assembler behavior can change with -static. MOFI->InitMCObjectFileInfo(Opts.Triple, Reloc::Default, CodeModel::Default, Ctx); |