From cd0cc613293b2e2d0964dca95a4c0f63708e0f64 Mon Sep 17 00:00:00 2001 From: Anand Shukla Date: Thu, 5 Jun 2003 06:02:46 +0000 Subject: Fixed a bug so initialization code is always inserted in main git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6622 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Instrumentation/ProfilePaths/EdgeCode.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/Transforms/Instrumentation/ProfilePaths/EdgeCode.cpp') diff --git a/lib/Transforms/Instrumentation/ProfilePaths/EdgeCode.cpp b/lib/Transforms/Instrumentation/ProfilePaths/EdgeCode.cpp index 61c60ec7c5..16b07f7c47 100644 --- a/lib/Transforms/Instrumentation/ProfilePaths/EdgeCode.cpp +++ b/lib/Transforms/Instrumentation/ProfilePaths/EdgeCode.cpp @@ -293,7 +293,7 @@ void insertInTopBB(BasicBlock *front, //iniArgs.push_back(ConstantSInt::get(Type::IntTy, k)); //new CallInst(inCountMth, iniArgs, "", here); - +/* if(front->getParent()->getName() == "main"){ //intialize threshold vector initialize_args; @@ -309,6 +309,7 @@ void insertInTopBB(BasicBlock *front, new CallInst(initialMeth, trargs, "", here); } +*/ } -- cgit v1.2.3