summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-08 19:03:57 +0000
committerOwen Anderson <resistor@mac.com>2009-07-08 19:03:57 +0000
commitb17f32945fa6dd8e552a16cc5273bba5805cf4e4 (patch)
treeb8383165ab804187660d5c8eddb2dc7486730b93 /llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp
parentd5ffa8ffb62df34c6fa3ba8ec4c29b2ea2891ad0 (diff)
downloadbcm5719-llvm-b17f32945fa6dd8e552a16cc5273bba5805cf4e4.tar.gz
bcm5719-llvm-b17f32945fa6dd8e552a16cc5273bba5805cf4e4.zip
Switch GlobalVariable ctors to a sane API, where *either* a context or a module is required.
llvm-svn: 75025
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp')
-rw-r--r--llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp b/llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp
index b625341273a..c3ec4b92f07 100644
--- a/llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp
+++ b/llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp
@@ -66,8 +66,8 @@ bool EdgeProfiler::runOnModule(Module &M) {
const Type *ATy = Context->getArrayType(Type::Int32Ty, NumEdges);
GlobalVariable *Counters =
- new GlobalVariable(M.getContext(), ATy, false, GlobalValue::InternalLinkage,
- Context->getNullValue(ATy), "EdgeProfCounters", &M);
+ new GlobalVariable(M, ATy, false, GlobalValue::InternalLinkage,
+ Context->getNullValue(ATy), "EdgeProfCounters");
// Instrument all of the edges...
unsigned i = 0;
OpenPOWER on IntegriCloud