summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCParser/AsmParser.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-05-19 17:48:09 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-05-19 17:48:09 +0000
commit3e2f17499ee399ca06faad913d157d920bfdf04a (patch)
treebe7c07deb83ccf1aaa07d48dd2c63f5430c47844 /llvm/lib/MC/MCParser/AsmParser.cpp
parent4cd88567045b42bf570eb08dcc5e5c15cd6f76bc (diff)
downloadbcm5719-llvm-3e2f17499ee399ca06faad913d157d920bfdf04a.tar.gz
bcm5719-llvm-3e2f17499ee399ca06faad913d157d920bfdf04a.zip
Revert r131644; it's breaking the build.
llvm-svn: 131653
Diffstat (limited to 'llvm/lib/MC/MCParser/AsmParser.cpp')
-rw-r--r--llvm/lib/MC/MCParser/AsmParser.cpp16
1 files changed, 4 insertions, 12 deletions
diff --git a/llvm/lib/MC/MCParser/AsmParser.cpp b/llvm/lib/MC/MCParser/AsmParser.cpp
index 46e01c55351..179fd8d2693 100644
--- a/llvm/lib/MC/MCParser/AsmParser.cpp
+++ b/llvm/lib/MC/MCParser/AsmParser.cpp
@@ -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 @@ public:
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 @@ void AsmParser::PrintMacroInstantiations() {
"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 @@ bool AsmParser::ParseStatement() {
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();
OpenPOWER on IntegriCloud