diff options
author | Kevin Enderby <enderby@apple.com> | 2014-04-22 21:42:18 +0000 |
---|---|---|
committer | Kevin Enderby <enderby@apple.com> | 2014-04-22 21:42:18 +0000 |
commit | faf363ff839daa4fe1e5aadef540ba2091828952 (patch) | |
tree | bc00a8a8634351b090580856fd51b658213a1a9f /lib | |
parent | 0eb05e272ae10bc8c5530740914e1fb9e9052db1 (diff) | |
download | llvm-faf363ff839daa4fe1e5aadef540ba2091828952.tar.gz llvm-faf363ff839daa4fe1e5aadef540ba2091828952.tar.bz2 llvm-faf363ff839daa4fe1e5aadef540ba2091828952.tar.xz |
Change the prototype for MCContext::FatalError() so it can be called
from places like MCCodeEmitter() in the MC backend when the
MCContext is const.
I was going to use this in my change for r206669 but Jim convinced
me to use an assert there. But this still is a good tweak.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206923 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/MC/MCContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MC/MCContext.cpp b/lib/MC/MCContext.cpp index 6f0c391769..601903a173 100644 --- a/lib/MC/MCContext.cpp +++ b/lib/MC/MCContext.cpp @@ -339,7 +339,7 @@ bool MCContext::isValidDwarfFileNumber(unsigned FileNumber, unsigned CUID) { return !MCDwarfFiles[FileNumber].Name.empty(); } -void MCContext::FatalError(SMLoc Loc, const Twine &Msg) { +void MCContext::FatalError(SMLoc Loc, const Twine &Msg) const { // If we have a source manager and a location, use it. Otherwise just // use the generic report_fatal_error(). if (!SrcMgr || Loc == SMLoc()) |