diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-29 22:17:13 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-29 22:17:13 +0000 |
commit | 4056ca9568acd3a43a4d7ce96c4a7dec2442e071 (patch) | |
tree | 3fd54a55f4fe98f2999bad43a2cb822fd04c64df /llvm/lib/CodeGen/ShadowStackGC.cpp | |
parent | 9793f0e4d7f7feb746d1a54ce7ac6e311b98f7b1 (diff) | |
download | bcm5719-llvm-4056ca9568acd3a43a4d7ce96c4a7dec2442e071.tar.gz bcm5719-llvm-4056ca9568acd3a43a4d7ce96c4a7dec2442e071.zip |
Move types back to the 2.5 API.
llvm-svn: 77516
Diffstat (limited to 'llvm/lib/CodeGen/ShadowStackGC.cpp')
-rw-r--r-- | llvm/lib/CodeGen/ShadowStackGC.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/ShadowStackGC.cpp b/llvm/lib/CodeGen/ShadowStackGC.cpp index 08d6720701a..b412532e331 100644 --- a/llvm/lib/CodeGen/ShadowStackGC.cpp +++ b/llvm/lib/CodeGen/ShadowStackGC.cpp @@ -188,8 +188,6 @@ ShadowStackGC::ShadowStackGC() : Head(0), StackEntryTy(0) { Constant *ShadowStackGC::GetFrameMap(Function &F) { // doInitialization creates the abstract type of this value. - LLVMContext &Context = F.getContext(); - Type *VoidPtr = PointerType::getUnqual(Type::Int8Ty); // Truncate the ShadowStackDescriptor if some metadata is null. @@ -209,7 +207,7 @@ Constant *ShadowStackGC::GetFrameMap(Function &F) { Constant *DescriptorElts[] = { ConstantStruct::get(BaseElts, 2), - ConstantArray::get(Context.getArrayType(VoidPtr, NumMeta), + ConstantArray::get(ArrayType::get(VoidPtr, NumMeta), Metadata.begin(), NumMeta) }; |