mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
Use Intrinsic::getDeclaration in more places.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49338 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -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() {}
|
||||
|
Reference in New Issue
Block a user