aboutsummaryrefslogtreecommitdiffstats
path: root/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
commit7b6f2034ac355bd3b3cc88960bf8d0e694fe3db4 (patch)
tree1fbf98d382ccd9fe5d7e82c169df126848015ffc /lib/MC/MCParser/MCAsmLexer.cpp
parent4caf5281bf9cbdbc13758a6f2b965b0e9ef233d3 (diff)
downloadexternal_llvm-7b6f2034ac355bd3b3cc88960bf8d0e694fe3db4.zip
external_llvm-7b6f2034ac355bd3b3cc88960bf8d0e694fe3db4.tar.gz
external_llvm-7b6f2034ac355bd3b3cc88960bf8d0e694fe3db4.tar.bz2
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164248 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCParser/MCAsmLexer.cpp')
-rw-r--r--lib/MC/MCParser/MCAsmLexer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/MC/MCParser/MCAsmLexer.cpp b/lib/MC/MCParser/MCAsmLexer.cpp
index 3a3ff14..384b341 100644
--- a/lib/MC/MCParser/MCAsmLexer.cpp
+++ b/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() {