mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-22 23:24:59 +00:00
Convert MC command line option for fatal assembler warnings into a
proper flag. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216471 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -45,10 +45,6 @@
|
||||
#include <vector>
|
||||
using namespace llvm;
|
||||
|
||||
static cl::opt<bool>
|
||||
FatalAssemblerWarnings("fatal-assembler-warnings",
|
||||
cl::desc("Consider warnings as error"));
|
||||
|
||||
MCAsmParserSemaCallback::~MCAsmParserSemaCallback() {}
|
||||
|
||||
namespace {
|
||||
@@ -552,7 +548,7 @@ void AsmParser::Note(SMLoc L, const Twine &Msg, ArrayRef<SMRange> Ranges) {
|
||||
}
|
||||
|
||||
bool AsmParser::Warning(SMLoc L, const Twine &Msg, ArrayRef<SMRange> Ranges) {
|
||||
if (FatalAssemblerWarnings)
|
||||
if (getTargetParser().getTargetOptions().MCFatalWarnings)
|
||||
return Error(L, Msg, Ranges);
|
||||
printMessage(L, SourceMgr::DK_Warning, Msg, Ranges);
|
||||
printMacroInstantiations();
|
||||
|
Reference in New Issue
Block a user