mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-11 08:29:25 +00:00
Split TargetLowering into a CodeGen and a SelectionDAG part.
This fixes some of the cycles between libCodeGen and libSelectionDAG. It's still a complete mess but as long as the edges consist of virtual call it doesn't cause breakage. BasicTTI did static calls and thus broke some build configurations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172246 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -36,7 +36,7 @@ namespace {
|
||||
class StackProtector : public FunctionPass {
|
||||
/// TLI - Keep a pointer of a TargetLowering to consult for determining
|
||||
/// target type sizes.
|
||||
const TargetLowering *TLI;
|
||||
const TargetLoweringBase *TLI;
|
||||
|
||||
Function *F;
|
||||
Module *M;
|
||||
@@ -68,7 +68,7 @@ namespace {
|
||||
StackProtector() : FunctionPass(ID), TLI(0) {
|
||||
initializeStackProtectorPass(*PassRegistry::getPassRegistry());
|
||||
}
|
||||
StackProtector(const TargetLowering *tli)
|
||||
StackProtector(const TargetLoweringBase *tli)
|
||||
: FunctionPass(ID), TLI(tli) {
|
||||
initializeStackProtectorPass(*PassRegistry::getPassRegistry());
|
||||
}
|
||||
@@ -85,7 +85,7 @@ char StackProtector::ID = 0;
|
||||
INITIALIZE_PASS(StackProtector, "stack-protector",
|
||||
"Insert stack protectors", false, false)
|
||||
|
||||
FunctionPass *llvm::createStackProtectorPass(const TargetLowering *tli) {
|
||||
FunctionPass *llvm::createStackProtectorPass(const TargetLoweringBase *tli) {
|
||||
return new StackProtector(tli);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user