diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2005-04-21 22:36:52 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2005-04-21 22:36:52 +0000 |
commit | edf128a7fa90f2b0b7ee24741a04a7ae1ecd6f7e (patch) | |
tree | 3a2bd1b8b76e3380197d77448d1eebddf6259ce0 /lib/CodeGen/AsmPrinter.cpp | |
parent | 23c6d2cb795ba0e7f132648ced6531a8abaa0d96 (diff) |
Remove trailing whitespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21420 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/CodeGen/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter.cpp index 6b4afb7dd8..7abb8d5954 100644 --- a/lib/CodeGen/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter.cpp @@ -148,7 +148,7 @@ static void printAsCString(std::ostream &O, const ConstantArray *CVA) { O << "\""; for (unsigned i = 0; i != CVA->getNumOperands(); ++i) { - unsigned char C = + unsigned char C = (unsigned char)cast<ConstantInt>(CVA->getOperand(i))->getRawValue(); if (C == '"') { @@ -178,7 +178,7 @@ static void printAsCString(std::ostream &O, const ConstantArray *CVA) { /// emitGlobalConstant - Print a general LLVM constant to the .s file. /// -void AsmPrinter::emitGlobalConstant(const Constant *CV) { +void AsmPrinter::emitGlobalConstant(const Constant *CV) { const TargetData &TD = TM.getTargetData(); if (CV->isNullValue() || isa<UndefValue>(CV)) { @@ -253,7 +253,7 @@ void AsmPrinter::emitGlobalConstant(const Constant *CV) { int32_t UVal; } U; U.FVal = (float)Val; - + O << Data32bitsDirective << U.UVal << "\t" << CommentString << " float " << Val << "\n"; return; @@ -261,7 +261,7 @@ void AsmPrinter::emitGlobalConstant(const Constant *CV) { } else if (CV->getType() == Type::ULongTy || CV->getType() == Type::LongTy) { if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) { uint64_t Val = CI->getRawValue(); - + if (Data64bitsDirective) O << Data64bitsDirective << Val << "\n"; else if (TD.isBigEndian()) { @@ -285,7 +285,7 @@ void AsmPrinter::emitGlobalConstant(const Constant *CV) { const Type *type = CV->getType(); switch (type->getTypeID()) { - case Type::BoolTyID: + case Type::BoolTyID: case Type::UByteTyID: case Type::SByteTyID: O << Data8bitsDirective; break; @@ -301,7 +301,7 @@ void AsmPrinter::emitGlobalConstant(const Constant *CV) { case Type::UIntTyID: case Type::IntTyID: O << Data32bitsDirective; break; - case Type::ULongTyID: case Type::LongTyID: + case Type::ULongTyID: case Type::LongTyID: assert (0 && "Should have already output double-word constant."); case Type::FloatTyID: case Type::DoubleTyID: assert (0 && "Should have already output floating point constant."); |