diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-13 23:16:26 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-13 23:16:26 +0000 |
commit | 099c28e44622004fe278af697257eff8e58e8ada (patch) | |
tree | b05ea1cfb920c9acc7017963dde0a396b37168bb /include | |
parent | 5f1f0b8f7e7087d456ddc3efdb4bed21a4ae359c (diff) | |
download | external_llvm-099c28e44622004fe278af697257eff8e58e8ada.zip external_llvm-099c28e44622004fe278af697257eff8e58e8ada.tar.gz external_llvm-099c28e44622004fe278af697257eff8e58e8ada.tar.bz2 |
Move a bit more functionality to LLVMContext, which apparently wasn't being used anyways.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75546 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Constants.h | 6 | ||||
-rw-r--r-- | include/llvm/LLVMContext.h | 5 |
2 files changed, 5 insertions, 6 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h index 143f3ad..4590528 100644 --- a/include/llvm/Constants.h +++ b/include/llvm/Constants.h @@ -256,12 +256,6 @@ public: /// get() - Static factory methods - Return objects of the specified value static ConstantFP *get(const APFloat &V); - /// get() - This returns a ConstantFP, or a vector containing a splat of a - /// ConstantFP, 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 host double and as the target format. - static Constant *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); inline const APFloat& getValueAPF() const { return Val; } diff --git a/include/llvm/LLVMContext.h b/include/llvm/LLVMContext.h index 55eead4..e711838 100644 --- a/include/llvm/LLVMContext.h +++ b/include/llvm/LLVMContext.h @@ -183,6 +183,11 @@ public: // ConstantFP accessors ConstantFP* getConstantFP(const APFloat& V); + + /// get() - This returns a ConstantFP, or a vector containing a splat of a + /// ConstantFP, 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 host double and as the target format. Constant* getConstantFP(const Type* Ty, double V); ConstantFP* getConstantFPNegativeZero(const Type* Ty); |