diff options
author | Sanjay Patel <spatel@rotateright.com> | 2016-05-18 22:05:28 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2016-05-18 22:05:28 +0000 |
commit | f3587ec955b7b00b4e6c206c24213d621cea6157 (patch) | |
tree | b0eaaaebf67cf82e21f8b87f4f66522ea40dd14c /llvm/lib/IR/Constants.cpp | |
parent | 3c70d38d1f5bec30876f7cf93e192d36cccdc3c9 (diff) | |
download | bcm5719-llvm-f3587ec955b7b00b4e6c206c24213d621cea6157.tar.gz bcm5719-llvm-f3587ec955b7b00b4e6c206c24213d621cea6157.zip |
fix formatting; NFC
llvm-svn: 269990
Diffstat (limited to 'llvm/lib/IR/Constants.cpp')
-rw-r--r-- | llvm/lib/IR/Constants.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/llvm/lib/IR/Constants.cpp b/llvm/lib/IR/Constants.cpp index 81832789063..35233ae522a 100644 --- a/llvm/lib/IR/Constants.cpp +++ b/llvm/lib/IR/Constants.cpp @@ -567,8 +567,7 @@ Constant *ConstantInt::get(Type *Ty, uint64_t V, bool isSigned) { return C; } -ConstantInt *ConstantInt::get(IntegerType *Ty, uint64_t V, - bool isSigned) { +ConstantInt *ConstantInt::get(IntegerType *Ty, uint64_t V, bool isSigned) { return get(Ty->getContext(), APInt(Ty->getBitWidth(), V, isSigned)); } @@ -592,8 +591,7 @@ Constant *ConstantInt::get(Type *Ty, const APInt& V) { return C; } -ConstantInt *ConstantInt::get(IntegerType* Ty, StringRef Str, - uint8_t radix) { +ConstantInt *ConstantInt::get(IntegerType* Ty, StringRef Str, uint8_t radix) { return get(Ty->getContext(), APInt(Ty->getBitWidth(), Str, radix)); } @@ -1539,8 +1537,7 @@ Constant *ConstantExpr::getPointerBitCastOrAddrSpaceCast(Constant *S, return getBitCast(S, Ty); } -Constant *ConstantExpr::getIntegerCast(Constant *C, Type *Ty, - bool isSigned) { +Constant *ConstantExpr::getIntegerCast(Constant *C, Type *Ty, bool isSigned) { assert(C->getType()->isIntOrIntVectorTy() && Ty->isIntOrIntVectorTy() && "Invalid cast"); unsigned SrcBits = C->getType()->getScalarSizeInBits(); |