[llvm-commits] [llvm] r129106 - in /llvm/trunk: lib/MC/MCParser/AsmParser.cpp test/MC/AsmParser/directive_space.s
Rafael Espindola
rafael.espindola at gmail.com
Thu Apr 7 13:26:23 PDT 2011
Author: rafael
Date: Thu Apr 7 15:26:23 2011
New Revision: 129106
URL: http://llvm.org/viewvc/llvm-project?rev=129106&view=rev
Log:
Add support for .skip.
Patch by Roman Divacky.
Fixes PR9361.
Modified:
llvm/trunk/lib/MC/MCParser/AsmParser.cpp
llvm/trunk/test/MC/AsmParser/directive_space.s
Modified: llvm/trunk/lib/MC/MCParser/AsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCParser/AsmParser.cpp?rev=129106&r1=129105&r2=129106&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCParser/AsmParser.cpp (original)
+++ llvm/trunk/lib/MC/MCParser/AsmParser.cpp Thu Apr 7 15:26:23 2011
@@ -1052,7 +1052,7 @@
if (IDVal == ".fill")
return ParseDirectiveFill();
- if (IDVal == ".space")
+ if (IDVal == ".space" || IDVal == ".skip")
return ParseDirectiveSpace();
if (IDVal == ".zero")
return ParseDirectiveZero();
Modified: llvm/trunk/test/MC/AsmParser/directive_space.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/AsmParser/directive_space.s?rev=129106&r1=129105&r2=129106&view=diff
==============================================================================
--- llvm/trunk/test/MC/AsmParser/directive_space.s (original)
+++ llvm/trunk/test/MC/AsmParser/directive_space.s Thu Apr 7 15:26:23 2011
@@ -9,3 +9,8 @@
# CHECK: .space 2,3
TEST1:
.space 2, 3
+
+# CHECK: TEST2:
+# CHECK: .space 1
+TEST2:
+ .skip 1
More information about the llvm-commits
mailing list