aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-09-24 01:59:31 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-09-24 01:59:31 +0000
commit54f0a625b0eb9afeece652a8462755010d237c78 (patch)
treecf57c4e7444e1aad1388654f5a48d5d6ac630e72 /tools
parent75413b146443f4ee2d495969127dc1fc1ddb87c1 (diff)
MC/Lexer: Add 'Real' token type for floating point literals.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114718 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/llvm-mc/llvm-mc.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/llvm-mc/llvm-mc.cpp b/tools/llvm-mc/llvm-mc.cpp
index 424cc08890..6622f94d89 100644
--- a/tools/llvm-mc/llvm-mc.cpp
+++ b/tools/llvm-mc/llvm-mc.cpp
@@ -208,6 +208,9 @@ static int AsLexInput(const char *ProgName) {
case AsmToken::Integer:
Out->os() << "int: " << Lexer.getTok().getString() << '\n';
break;
+ case AsmToken::Real:
+ Out->os() << "real: " << Lexer.getTok().getString() << '\n';
+ break;
case AsmToken::Register:
Out->os() << "register: " << Lexer.getTok().getRegVal() << '\n';
break;