summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCParser/MCAsmLexer.cpp
diff options
context:
space:
mode:
authorPreston Gurd <preston.gurd@intel.com>2012-09-19 20:36:12 +0000
committerPreston Gurd <preston.gurd@intel.com>2012-09-19 20:36:12 +0000
commit055006475e22014b28a070db1bff41ca15f322f0 (patch)
treefe414f0b484c3f36c23309b1dd835f8efbe97483 /llvm/lib/MC/MCParser/MCAsmLexer.cpp
parent12ccbe7a8e356bc1a52e5f7ded532e3a62379053 (diff)
downloadbcm5719-llvm-055006475e22014b28a070db1bff41ca15f322f0.tar.gz
bcm5719-llvm-055006475e22014b28a070db1bff41ca15f322f0.zip
Add support for macro parameters/arguments delimited by spaces,
to improve compatibility with GNU as. Based on a patch by PaX Team. Fixed assertion failures on non-Darwin and added additional test cases. llvm-svn: 164248
Diffstat (limited to 'llvm/lib/MC/MCParser/MCAsmLexer.cpp')
-rw-r--r--llvm/lib/MC/MCParser/MCAsmLexer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCParser/MCAsmLexer.cpp b/llvm/lib/MC/MCParser/MCAsmLexer.cpp
index 3a3ff147117..384b341bc73 100644
--- a/llvm/lib/MC/MCParser/MCAsmLexer.cpp
+++ b/llvm/lib/MC/MCParser/MCAsmLexer.cpp
@@ -12,7 +12,8 @@
using namespace llvm;
-MCAsmLexer::MCAsmLexer() : CurTok(AsmToken::Error, StringRef()), TokStart(0) {
+MCAsmLexer::MCAsmLexer() : CurTok(AsmToken::Error, StringRef()),
+ TokStart(0), SkipSpace(true) {
}
MCAsmLexer::~MCAsmLexer() {
OpenPOWER on IntegriCloud