summaryrefslogtreecommitdiff
path: root/lib/CodeGen/ShadowStackGC.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-27 22:29:26 +0000
committerOwen Anderson <resistor@mac.com>2009-07-27 22:29:26 +0000
commit8fa3338ed2400c1352b137613d2c2c70d1ead695 (patch)
tree4e170be384fe7fcc54a6f686a6087729fc52ac0c /lib/CodeGen/ShadowStackGC.cpp
parentf08583b5323801b001175c2a62ac3e3d258723ac (diff)
downloadllvm-8fa3338ed2400c1352b137613d2c2c70d1ead695.tar.gz
llvm-8fa3338ed2400c1352b137613d2c2c70d1ead695.tar.bz2
llvm-8fa3338ed2400c1352b137613d2c2c70d1ead695.tar.xz
Move ConstantStruct back to 2.5 API.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77266 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ShadowStackGC.cpp')
-rw-r--r--lib/CodeGen/ShadowStackGC.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/ShadowStackGC.cpp b/lib/CodeGen/ShadowStackGC.cpp
index e3281d2492..9d141e9c82 100644
--- a/lib/CodeGen/ShadowStackGC.cpp
+++ b/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);