[llvm-commits] [llvm] r49434 - /llvm/trunk/include/llvm/Constants.h
Chris Lattner
sabre at nondot.org
Wed Apr 9 10:16:28 PDT 2008
Author: lattner
Date: Wed Apr 9 12:16:28 2008
New Revision: 49434
URL: http://llvm.org/viewvc/llvm-project?rev=49434&view=rev
Log:
ConstantFP::get should be static.
Modified:
llvm/trunk/include/llvm/Constants.h
Modified: llvm/trunk/include/llvm/Constants.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Constants.h?rev=49434&r1=49433&r2=49434&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Constants.h (original)
+++ llvm/trunk/include/llvm/Constants.h Wed Apr 9 12:16:28 2008
@@ -240,7 +240,7 @@
/// get() - This returns a constant fp for the specified value in the
/// specified type. This should only be used for simple constant values like
/// 2.0/1.0 etc, that are known-valid both as double and as the target format.
- ConstantFP *get(const Type *Ty, double V);
+ static ConstantFP *get(const Type *Ty, double V);
/// isValueValidForType - return true if Ty is big enough to represent V.
static bool isValueValidForType(const Type *Ty, const APFloat& V);
More information about the llvm-commits
mailing list