[llvm-commits] CVS: llvm/include/llvm/Constants.h
Reid Spencer
reid at x10sys.com
Tue Dec 5 11:14:31 PST 2006
Changes in directory llvm/include/llvm:
Constants.h updated: 1.102 -> 1.103
---
Log message:
Bail on the getInferredCast idea. Remove the function and convert
remaining uses to more specific casts.
---
Diffs of the changes: (+1 -9)
Constants.h | 10 +---------
1 files changed, 1 insertion(+), 9 deletions(-)
Index: llvm/include/llvm/Constants.h
diff -u llvm/include/llvm/Constants.h:1.102 llvm/include/llvm/Constants.h:1.103
--- llvm/include/llvm/Constants.h:1.102 Mon Dec 4 17:14:27 2006
+++ llvm/include/llvm/Constants.h Tue Dec 5 13:14:13 2006
@@ -567,15 +567,7 @@
const Type *Ty ///< The type to which cast should be made
);
- // This method uses the CastInst::getCastOpcode method to infer the
- // cast opcode to use.
- // @brief Get a ConstantExpr Conversion operator that casts C to Ty
- static Constant *getInferredCast(Constant *C, bool SrcIsSigned,
- const Type *Ty, bool DestIsSigned);
-
- static Constant *getCast(Constant *C, const Type *Ty) {
- return getInferredCast(C, C->getType()->isSigned(), Ty, Ty->isSigned());
- }
+ static Constant *getCast(Constant *C, const Type *Ty);
/// @brief Return true if this is a convert constant expression
bool isCast() const;
More information about the llvm-commits
mailing list