diff options
author | Duncan Sands <baldrick@free.fr> | 2009-10-06 15:40:36 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2009-10-06 15:40:36 +0000 |
commit | 9ed7b16bf33d191c4f58f41b128aded092cc4ea0 (patch) | |
tree | 5a1196d794ebba33ff7470d5b0b8abfa948a0e04 /llvm/lib/CodeGen/DwarfEHPrepare.cpp | |
parent | fa21fe7c3d40396ab5c37e087e8b8d02167aee99 (diff) | |
download | bcm5719-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/CodeGen/DwarfEHPrepare.cpp')
-rw-r--r-- | llvm/lib/CodeGen/DwarfEHPrepare.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/DwarfEHPrepare.cpp b/llvm/lib/CodeGen/DwarfEHPrepare.cpp index 0ae7b35cc34..72b3f92d326 100644 --- a/llvm/lib/CodeGen/DwarfEHPrepare.cpp +++ b/llvm/lib/CodeGen/DwarfEHPrepare.cpp @@ -236,7 +236,7 @@ bool DwarfEHPrepare::LowerUnwinds() { if (!RewindFunction) { LLVMContext &Ctx = UnwindInsts[0]->getContext(); std::vector<const Type*> - Params(1, PointerType::getUnqual(Type::getInt8Ty(Ctx))); + Params(1, Type::getInt8PtrTy(Ctx)); FunctionType *FTy = FunctionType::get(Type::getVoidTy(Ctx), Params, false); const char *RewindName = TLI->getLibcallName(RTLIB::UNWIND_RESUME); |