diff options
author | Anand Shukla <ashukla@cs.uiuc.edu> | 2003-06-05 06:02:46 +0000 |
---|---|---|
committer | Anand Shukla <ashukla@cs.uiuc.edu> | 2003-06-05 06:02:46 +0000 |
commit | cd0cc613293b2e2d0964dca95a4c0f63708e0f64 (patch) | |
tree | b997899caa6fb07c66eec1fe9f6f9e5c42839c58 /lib/Transforms/Instrumentation/ProfilePaths/EdgeCode.cpp | |
parent | 7990199625f097c04e2dc4d85a8fb3f74cb01d42 (diff) |
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
Diffstat (limited to 'lib/Transforms/Instrumentation/ProfilePaths/EdgeCode.cpp')
-rw-r--r-- | lib/Transforms/Instrumentation/ProfilePaths/EdgeCode.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<const Type*> initialize_args; @@ -309,6 +309,7 @@ void insertInTopBB(BasicBlock *front, new CallInst(initialMeth, trargs, "", here); } +*/ } |