Move types back to the 2.5 API.
[oota-llvm.git] / lib / Transforms / Instrumentation / EdgeProfiling.cpp
index d1aa37018701ed98733feef8e9c972f133a5328f..b900945dace23f45c7fbacc42b2109528f2f5d6f 100644 (file)
@@ -64,7 +64,7 @@ bool EdgeProfiler::runOnModule(Module &M) {
       NumEdges += BB->getTerminator()->getNumSuccessors();
     }
 
-  const Type *ATy = M.getContext().getArrayType(Type::Int32Ty, NumEdges);
+  const Type *ATy = ArrayType::get(Type::Int32Ty, NumEdges);
   GlobalVariable *Counters =
     new GlobalVariable(M, ATy, false, GlobalValue::InternalLinkage,
                        M.getContext().getNullValue(ATy), "EdgeProfCounters");