diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-01-12 07:25:20 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-01-12 07:25:20 +0000 |
commit | 15ee935fc52b2e68a294631aac0c84ea4ba72509 (patch) | |
tree | f263348300cf76becc5c50a806e020f1b68e35a3 /lib/VMCore/AsmWriter.cpp | |
parent | e77d10df41db0caf6f223a2715b940ca694d1316 (diff) | |
download | llvm-15ee935fc52b2e68a294631aac0c84ea4ba72509.tar.gz llvm-15ee935fc52b2e68a294631aac0c84ea4ba72509.tar.bz2 llvm-15ee935fc52b2e68a294631aac0c84ea4ba72509.tar.xz |
Always write 1 bit integers as i1 not "bool".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33115 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/AsmWriter.cpp')
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 4730c3166b..89240fca2c 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -268,11 +268,7 @@ static void calcTypeName(const Type *Ty, switch (Ty->getTypeID()) { case Type::IntegerTyID: { unsigned BitWidth = cast<IntegerType>(Ty)->getBitWidth(); - if (BitWidth == 1) - Result += "bool"; - else { - Result += "i" + utostr(BitWidth); - } + Result += "i" + utostr(BitWidth); break; } case Type::FunctionTyID: { |