[llvm-commits] [llvm] r52432 - /llvm/trunk/lib/VMCore/Instructions.cpp
Dan Gohman
gohman at apple.com
Tue Jun 17 14:07:56 PDT 2008
Author: djg
Date: Tue Jun 17 16:07:55 2008
New Revision: 52432
URL: http://llvm.org/viewvc/llvm-project?rev=52432&view=rev
Log:
Implement the ExtractValueInst::getIndexedType that accepts one
index value.
Modified:
llvm/trunk/lib/VMCore/Instructions.cpp
Modified: llvm/trunk/lib/VMCore/Instructions.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Instructions.cpp?rev=52432&r1=52431&r2=52432&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Instructions.cpp (original)
+++ llvm/trunk/lib/VMCore/Instructions.cpp Tue Jun 17 16:07:55 2008
@@ -1460,6 +1460,12 @@
return CurIdx == NumIdx ? Agg : 0;
}
+const Type* ExtractValueInst::getIndexedType(const Type *Agg,
+ const unsigned Idx) {
+ const unsigned Idxs[1] = { Idx };
+ return getIndexedType(Agg, &Idxs[0], 1);
+}
+
ExtractValueInst::ExtractValueInst(Value *Agg,
unsigned Idx,
const std::string &Name,
More information about the llvm-commits
mailing list