projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MC: Use MachO::SectionType for MCSectionMachO::getType's return type
[oota-llvm.git]
/
lib
/
MC
/
MCParser
/
MCAsmParser.cpp
diff --git
a/lib/MC/MCParser/MCAsmParser.cpp
b/lib/MC/MCParser/MCAsmParser.cpp
index 70295efc613ca0a6bebb23d087f4919118f82e7c..6e1ebad36c0d875ed22ffe1305b451f8dd09c37f 100644
(file)
--- a/
lib/MC/MCParser/MCAsmParser.cpp
+++ b/
lib/MC/MCParser/MCAsmParser.cpp
@@
-11,8
+11,10
@@
#include "llvm/ADT/Twine.h"
#include "llvm/MC/MCParser/MCAsmLexer.h"
#include "llvm/MC/MCParser/MCParsedAsmOperand.h"
#include "llvm/ADT/Twine.h"
#include "llvm/MC/MCParser/MCAsmLexer.h"
#include "llvm/MC/MCParser/MCParsedAsmOperand.h"
+#include "llvm/MC/MCTargetAsmParser.h"
+#include "llvm/Support/Debug.h"
#include "llvm/Support/SourceMgr.h"
#include "llvm/Support/SourceMgr.h"
-#include "llvm/
Target/TargetAsmParser
.h"
+#include "llvm/
Support/raw_ostream
.h"
using namespace llvm;
MCAsmParser::MCAsmParser() : TargetParser(0), ShowParsedOperands(0) {
using namespace llvm;
MCAsmParser::MCAsmParser() : TargetParser(0), ShowParsedOperands(0) {
@@
-21,7
+23,7
@@
MCAsmParser::MCAsmParser() : TargetParser(0), ShowParsedOperands(0) {
MCAsmParser::~MCAsmParser() {
}
MCAsmParser::~MCAsmParser() {
}
-void MCAsmParser::setTargetParser(TargetAsmParser &P) {
+void MCAsmParser::setTargetParser(
MC
TargetAsmParser &P) {
assert(!TargetParser && "Target parser is already initialized!");
TargetParser = &P;
TargetParser->Initialize(*this);
assert(!TargetParser && "Target parser is already initialized!");
TargetParser = &P;
TargetParser->Initialize(*this);
@@
-31,14
+33,18
@@
const AsmToken &MCAsmParser::getTok() {
return getLexer().getTok();
}
return getLexer().getTok();
}
-bool MCAsmParser::TokError(const Twine &Msg) {
- Error(getLexer().getLoc(), Msg);
+bool MCAsmParser::TokError(const Twine &Msg
, ArrayRef<SMRange> Ranges
) {
+ Error(getLexer().getLoc(), Msg
, Ranges
);
return true;
}
return true;
}
-bool MCAsmParser::
P
arseExpression(const MCExpr *&Res) {
+bool MCAsmParser::
p
arseExpression(const MCExpr *&Res) {
SMLoc L;
SMLoc L;
- return
P
arseExpression(Res, L);
+ return
p
arseExpression(Res, L);
}
}
-
+void MCParsedAsmOperand::dump() const {
+#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
+ dbgs() << " " << *this;
+#endif
+}