[llvm-commits] [llvm] r117922 - in /llvm/trunk: lib/MC/MCParser/AsmParser.cpp test/MC/AsmParser/directive_values.s
Rafael Espindola
rafael.espindola at gmail.com
Mon Nov 1 08:29:07 PDT 2010
Author: rafael
Date: Mon Nov 1 10:29:07 2010
New Revision: 117922
URL: http://llvm.org/viewvc/llvm-project?rev=117922&view=rev
Log:
Add support for .value.
Modified:
llvm/trunk/lib/MC/MCParser/AsmParser.cpp
llvm/trunk/test/MC/AsmParser/directive_values.s
Modified: llvm/trunk/lib/MC/MCParser/AsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCParser/AsmParser.cpp?rev=117922&r1=117921&r2=117922&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCParser/AsmParser.cpp (original)
+++ llvm/trunk/lib/MC/MCParser/AsmParser.cpp Mon Nov 1 10:29:07 2010
@@ -929,6 +929,8 @@
return ParseDirectiveValue(1);
if (IDVal == ".short")
return ParseDirectiveValue(2);
+ if (IDVal == ".value")
+ return ParseDirectiveValue(2);
if (IDVal == ".long")
return ParseDirectiveValue(4);
if (IDVal == ".quad")
Modified: llvm/trunk/test/MC/AsmParser/directive_values.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/AsmParser/directive_values.s?rev=117922&r1=117921&r2=117922&view=diff
==============================================================================
--- llvm/trunk/test/MC/AsmParser/directive_values.s (original)
+++ llvm/trunk/test/MC/AsmParser/directive_values.s Mon Nov 1 10:29:07 2010
@@ -36,3 +36,7 @@
# CHECK: .quad 1075
+TEST5:
+ .value 8
+# CHECK: TEST5:
+# CHECK: .short 8
More information about the llvm-commits
mailing list