[llvm-commits] [llvm] r131653 - in /llvm/trunk/lib/MC/MCParser: AsmParser.cpp DarwinAsmParser.cpp
Eli Friedman
eli.friedman at gmail.com
Thu May 19 10:48:09 PDT 2011
Author: efriedma
Date: Thu May 19 12:48:09 2011
New Revision: 131653
URL: http://llvm.org/viewvc/llvm-project?rev=131653&view=rev
Log:
Revert r131644; it's breaking the build.
Modified:
llvm/trunk/lib/MC/MCParser/AsmParser.cpp
llvm/trunk/lib/MC/MCParser/DarwinAsmParser.cpp
Modified: llvm/trunk/lib/MC/MCParser/AsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCParser/AsmParser.cpp?rev=131653&r1=131652&r2=131653&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCParser/AsmParser.cpp (original)
+++ llvm/trunk/lib/MC/MCParser/AsmParser.cpp Thu May 19 12:48:09 2011
@@ -27,7 +27,6 @@
#include "llvm/MC/MCStreamer.h"
#include "llvm/MC/MCSymbol.h"
#include "llvm/MC/MCDwarf.h"
-#include "llvm/Support/CommandLine.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/SourceMgr.h"
#include "llvm/Support/raw_ostream.h"
@@ -37,10 +36,6 @@
#include <vector>
using namespace llvm;
-static cl::opt<bool>
-FatalAssemblerWarnings("fatal-assembler-warnings",
- cl::desc("Consider warnings as error"));
-
namespace {
/// \brief Helper class for tracking macro definitions.
@@ -133,7 +128,7 @@
virtual MCContext &getContext() { return Ctx; }
virtual MCStreamer &getStreamer() { return Out; }
- virtual bool Warning(SMLoc L, const Twine &Meg);
+ virtual void Warning(SMLoc L, const Twine &Meg);
virtual bool Error(SMLoc L, const Twine &Msg);
const AsmToken &Lex();
@@ -375,12 +370,9 @@
"note");
}
-bool AsmParser::Warning(SMLoc L, const Twine &Msg) {
- if (FatalAssemblerWarnings)
- return Error(L, Msg);
+void AsmParser::Warning(SMLoc L, const Twine &Msg) {
PrintMessage(L, Msg, "warning");
PrintMacroInstantiations();
- return false;
}
bool AsmParser::Error(SMLoc L, const Twine &Msg) {
@@ -1137,9 +1129,9 @@
if (!getTargetParser().ParseDirective(ID))
return false;
- bool retval = Warning(IDLoc, "ignoring directive for now");
+ Warning(IDLoc, "ignoring directive for now");
EatToEndOfStatement();
- return retval;
+ return false;
}
CheckForValidSection();
Modified: llvm/trunk/lib/MC/MCParser/DarwinAsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCParser/DarwinAsmParser.cpp?rev=131653&r1=131652&r2=131653&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCParser/DarwinAsmParser.cpp (original)
+++ llvm/trunk/lib/MC/MCParser/DarwinAsmParser.cpp Thu May 19 12:48:09 2011
@@ -369,9 +369,11 @@
// FIXME: If/when .dump and .load are implemented they will be done in the
// the assembly parser and not have any need for an MCStreamer API.
if (IsDump)
- return Warning(IDLoc, "ignoring directive .dump for now");
+ Warning(IDLoc, "ignoring directive .dump for now");
else
- return Warning(IDLoc, "ignoring directive .load for now");
+ Warning(IDLoc, "ignoring directive .load for now");
+
+ return false;
}
/// ParseDirectiveLsym
More information about the llvm-commits
mailing list