summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation/ProfilingUtils.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-10-06 15:40:36 +0000
committerDuncan Sands <baldrick@free.fr>2009-10-06 15:40:36 +0000
commit9ed7b16bf33d191c4f58f41b128aded092cc4ea0 (patch)
tree5a1196d794ebba33ff7470d5b0b8abfa948a0e04 /llvm/lib/Transforms/Instrumentation/ProfilingUtils.cpp
parentfa21fe7c3d40396ab5c37e087e8b8d02167aee99 (diff)
downloadbcm5719-llvm-9ed7b16bf33d191c4f58f41b128aded092cc4ea0.tar.gz
bcm5719-llvm-9ed7b16bf33d191c4f58f41b128aded092cc4ea0.zip
Introduce and use convenience methods for getting pointer types
where the element is of a basic builtin type. For example, to get an i8* use getInt8PtrTy. llvm-svn: 83379
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/ProfilingUtils.cpp')
-rw-r--r--llvm/lib/Transforms/Instrumentation/ProfilingUtils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/ProfilingUtils.cpp b/llvm/lib/Transforms/Instrumentation/ProfilingUtils.cpp
index 88a1d2a07c3..1679bea08c1 100644
--- a/llvm/lib/Transforms/Instrumentation/ProfilingUtils.cpp
+++ b/llvm/lib/Transforms/Instrumentation/ProfilingUtils.cpp
@@ -25,9 +25,9 @@ void llvm::InsertProfilingInitCall(Function *MainFn, const char *FnName,
GlobalValue *Array) {
LLVMContext &Context = MainFn->getContext();
const Type *ArgVTy =
- PointerType::getUnqual(PointerType::getUnqual(Type::getInt8Ty(Context)));
+ PointerType::getUnqual(Type::getInt8PtrTy(Context));
const PointerType *UIntPtr =
- PointerType::getUnqual(Type::getInt32Ty(Context));
+ Type::getInt32PtrTy(Context);
Module &M = *MainFn->getParent();
Constant *InitFn = M.getOrInsertFunction(FnName, Type::getInt32Ty(Context),
Type::getInt32Ty(Context),
OpenPOWER on IntegriCloud