summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2014-04-22 21:42:18 +0000
committerKevin Enderby <enderby@apple.com>2014-04-22 21:42:18 +0000
commit7ee97cebfc411f3731edaa220837711d0fc65355 (patch)
tree41efd86c449f4326e8df5995d7ea398a2bb746fc /llvm/lib/MC
parentf893a6551bd3a06364e3e5e4164415aecf8f5a58 (diff)
downloadbcm5719-llvm-7ee97cebfc411f3731edaa220837711d0fc65355.tar.gz
bcm5719-llvm-7ee97cebfc411f3731edaa220837711d0fc65355.zip
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. llvm-svn: 206923
Diffstat (limited to 'llvm/lib/MC')
-rw-r--r--llvm/lib/MC/MCContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCContext.cpp b/llvm/lib/MC/MCContext.cpp
index 6f0c391769f..601903a1731 100644
--- a/llvm/lib/MC/MCContext.cpp
+++ b/llvm/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())
OpenPOWER on IntegriCloud