[llvm-commits] [poolalloc] r134044 - /poolalloc/trunk/lib/AssistDS/TypeChecks.cpp
Arushi Aggarwal
aggarwa4 at illinois.edu
Tue Jun 28 16:49:40 PDT 2011
Author: aggarwa4
Date: Tue Jun 28 18:49:40 2011
New Revision: 134044
URL: http://llvm.org/viewvc/llvm-project?rev=134044&view=rev
Log:
Add support for strtod.
Modified:
poolalloc/trunk/lib/AssistDS/TypeChecks.cpp
Modified: poolalloc/trunk/lib/AssistDS/TypeChecks.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/AssistDS/TypeChecks.cpp?rev=134044&r1=134043&r2=134044&view=diff
==============================================================================
--- poolalloc/trunk/lib/AssistDS/TypeChecks.cpp (original)
+++ poolalloc/trunk/lib/AssistDS/TypeChecks.cpp Tue Jun 28 18:49:40 2011
@@ -1657,7 +1657,8 @@
Constant *F = M.getOrInsertFunction("trackctype_32", VoidTy, VoidPtrTy, Int32Ty, NULL);
CallInst *CI = CallInst::Create(F, Args.begin(), Args.end());
CI->insertAfter(BCI);
- } else if (F->getNameStr() == std::string("strtol")) {
+ } else if (F->getNameStr() == std::string("strtol") ||
+ F->getNameStr() == std::string("strtod")) {
CastInst *BCI = BitCastInst::CreatePointerCast(CS.getArgument(1), VoidPtrTy, "", I);
const PointerType *PTy = cast<PointerType>(CS.getArgument(1)->getType());
const Type * ElementType = PTy->getElementType();
More information about the llvm-commits
mailing list