diff options
Diffstat (limited to 'lib/CodeGen/RealHandler.cc')
| -rw-r--r-- | lib/CodeGen/RealHandler.cc | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/CodeGen/RealHandler.cc b/lib/CodeGen/RealHandler.cc deleted file mode 100644 index a73dee2..0000000 --- a/lib/CodeGen/RealHandler.cc +++ /dev/null @@ -1,16 +0,0 @@ -#include "cps/RealHandler.h" - -using namespace llvm; -using namespace cps; - -void RealHandler::emitDeclare(const std::string &Name) { - Function *TheFunction = Builder.GetInsertBlock()->getParent(); - IRBuilder<> TmpB(&TheFunction->getEntryBlock(), TheFunction->getEntryBlock().begin()); - AllocaInst *Alloca = TmpB.CreateAlloca(Type::getDoubleTy(Context), nullptr, Name); - Builder.CreateStore(ConstantFP::get(Context, APFloat(0.0)), Alloca); - NamedValues[Name] = Alloca; -} - -Value *RealHandler::createLiteral(double Val) { - return ConstantFP::get(Context, APFloat(Val)); -} |
