diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-09-24 01:59:31 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-09-24 01:59:31 +0000 |
commit | 54f0a625b0eb9afeece652a8462755010d237c78 (patch) | |
tree | cf57c4e7444e1aad1388654f5a48d5d6ac630e72 /tools/llvm-mc | |
parent | 75413b146443f4ee2d495969127dc1fc1ddb87c1 (diff) | |
download | external_llvm-54f0a625b0eb9afeece652a8462755010d237c78.zip external_llvm-54f0a625b0eb9afeece652a8462755010d237c78.tar.gz external_llvm-54f0a625b0eb9afeece652a8462755010d237c78.tar.bz2 |
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/llvm-mc')
-rw-r--r-- | tools/llvm-mc/llvm-mc.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/llvm-mc/llvm-mc.cpp b/tools/llvm-mc/llvm-mc.cpp index 424cc08..6622f94 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; |