diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-27 22:29:26 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-27 22:29:26 +0000 |
commit | 45308b578b5eae549e5661d65f73a77d673755bd (patch) | |
tree | 378dfd215a15edca2cedd8c0b3b1e876bbc79426 /llvm/lib/CodeGen/ShadowStackGC.cpp | |
parent | 31d9254f7a09091996595a76d58cf487eda575b7 (diff) | |
download | llvm-45308b578b5eae549e5661d65f73a77d673755bd.zip llvm-45308b578b5eae549e5661d65f73a77d673755bd.tar.gz llvm-45308b578b5eae549e5661d65f73a77d673755bd.tar.bz2 |
Move ConstantStruct back to 2.5 API.
llvm-svn: 77266
Diffstat (limited to 'llvm/lib/CodeGen/ShadowStackGC.cpp')
-rw-r--r-- | llvm/lib/CodeGen/ShadowStackGC.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/ShadowStackGC.cpp b/llvm/lib/CodeGen/ShadowStackGC.cpp index e3281d2..9d141e9 100644 --- a/llvm/lib/CodeGen/ShadowStackGC.cpp +++ b/llvm/lib/CodeGen/ShadowStackGC.cpp @@ -208,12 +208,12 @@ Constant *ShadowStackGC::GetFrameMap(Function &F) { }; Constant *DescriptorElts[] = { - Context.getConstantStruct(BaseElts, 2), + ConstantStruct::get(BaseElts, 2), Context.getConstantArray(Context.getArrayType(VoidPtr, NumMeta), Metadata.begin(), NumMeta) }; - Constant *FrameMap = Context.getConstantStruct(DescriptorElts, 2); + Constant *FrameMap = ConstantStruct::get(DescriptorElts, 2); std::string TypeName("gc_map."); TypeName += utostr(NumMeta); |