diff options
author | Jim Grosbach <grosbach@apple.com> | 2012-01-26 23:20:05 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2012-01-26 23:20:05 +0000 |
commit | 3662e5ce709814f6b7cb3871be71ebc5e1ada16f (patch) | |
tree | dea6e2103111ffc24f4ea64107e1ab5bc3b7a1a4 /lib/MC | |
parent | 53fa56e8dc60c8b594f22b888b4fb3c3b0567d82 (diff) | |
download | external_llvm-3662e5ce709814f6b7cb3871be71ebc5e1ada16f.zip external_llvm-3662e5ce709814f6b7cb3871be71ebc5e1ada16f.tar.gz external_llvm-3662e5ce709814f6b7cb3871be71ebc5e1ada16f.tar.bz2 |
Add SourceMgr to MCContext for backend diagnostics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149090 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC')
-rw-r--r-- | lib/MC/MCContext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/MC/MCContext.cpp b/lib/MC/MCContext.cpp index a1a01e3..e22a5ab 100644 --- a/lib/MC/MCContext.cpp +++ b/lib/MC/MCContext.cpp @@ -28,8 +28,8 @@ typedef StringMap<const MCSectionCOFF*> COFFUniqueMapTy; MCContext::MCContext(const MCAsmInfo &mai, const MCRegisterInfo &mri, - const MCObjectFileInfo *mofi) : - MAI(mai), MRI(mri), MOFI(mofi), + const MCObjectFileInfo *mofi, const SourceMgr *mgr) : + SrcMgr(mgr), MAI(mai), MRI(mri), MOFI(mofi), Allocator(), Symbols(Allocator), UsedNames(Allocator), NextUniqueID(0), CurrentDwarfLoc(0,0,0,DWARF2_FLAG_IS_STMT,0,0), |