diff options
| author | Duncan Sands <baldrick@free.fr> | 2008-04-07 13:45:04 +0000 |
|---|---|---|
| committer | Duncan Sands <baldrick@free.fr> | 2008-04-07 13:45:04 +0000 |
| commit | 813384951e274b03dec8d0b15d9671533461d7bc (patch) | |
| tree | fb84aae6dc12900ee3de908d9b44f1602cbc6940 /llvm/lib/Transforms/Instrumentation | |
| parent | 1416ebf1fe56290cfc1e91e0aba71b93c0c275bc (diff) | |
| download | bcm5719-llvm-813384951e274b03dec8d0b15d9671533461d7bc.tar.gz bcm5719-llvm-813384951e274b03dec8d0b15d9671533461d7bc.zip | |
Use Intrinsic::getDeclaration in more places.
llvm-svn: 49338
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation')
| -rw-r--r-- | llvm/lib/Transforms/Instrumentation/RSProfiling.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/RSProfiling.cpp b/llvm/lib/Transforms/Instrumentation/RSProfiling.cpp index e7e8efea882..15249c2e1ac 100644 --- a/llvm/lib/Transforms/Instrumentation/RSProfiling.cpp +++ b/llvm/lib/Transforms/Instrumentation/RSProfiling.cpp @@ -37,6 +37,7 @@ #include "llvm/Instructions.h" #include "llvm/Constants.h" #include "llvm/DerivedTypes.h" +#include "llvm/Intrinsics.h" #include "llvm/Transforms/Scalar.h" #include "llvm/Transforms/Utils/BasicBlockUtils.h" #include "llvm/Support/CommandLine.h" @@ -301,7 +302,7 @@ void GlobalRandomCounterOpt::ProcessChoicePoint(BasicBlock* bb) { CycleCounter::CycleCounter(Module& m, uint64_t resetmask) : rm(resetmask) { - F = m.getOrInsertFunction("llvm.readcyclecounter", Type::Int64Ty, NULL); + F = Intrinsic::getDeclaration(&m, Intrinsic::readcyclecounter); } CycleCounter::~CycleCounter() {} |

