mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
Rename createGlobalBaseRegPass -> createX86GlobalBaseRegPass to make
it obvious that it's a target specific pass. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209380 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4551b0a800
commit
42854e57a9
@ -30,9 +30,9 @@ class X86TargetMachine;
|
|||||||
FunctionPass *createX86ISelDag(X86TargetMachine &TM,
|
FunctionPass *createX86ISelDag(X86TargetMachine &TM,
|
||||||
CodeGenOpt::Level OptLevel);
|
CodeGenOpt::Level OptLevel);
|
||||||
|
|
||||||
/// createGlobalBaseRegPass - This pass initializes a global base
|
/// createX86GlobalBaseRegPass - This pass initializes a global base
|
||||||
/// register for PIC on x86-32.
|
/// register for PIC on x86-32.
|
||||||
FunctionPass* createGlobalBaseRegPass();
|
FunctionPass* createX86GlobalBaseRegPass();
|
||||||
|
|
||||||
/// createCleanupLocalDynamicTLSPass() - This pass combines multiple accesses
|
/// createCleanupLocalDynamicTLSPass() - This pass combines multiple accesses
|
||||||
/// to local-dynamic TLS variables so that the TLS base address for the module
|
/// to local-dynamic TLS variables so that the TLS base address for the module
|
||||||
|
@ -5451,7 +5451,7 @@ namespace {
|
|||||||
|
|
||||||
char CGBR::ID = 0;
|
char CGBR::ID = 0;
|
||||||
FunctionPass*
|
FunctionPass*
|
||||||
llvm::createGlobalBaseRegPass() { return new CGBR(); }
|
llvm::createX86GlobalBaseRegPass() { return new CGBR(); }
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
struct LDTLSCleanup : public MachineFunctionPass {
|
struct LDTLSCleanup : public MachineFunctionPass {
|
||||||
|
@ -180,7 +180,7 @@ bool X86PassConfig::addInstSelector() {
|
|||||||
|
|
||||||
// For 32-bit, prepend instructions to set the "global base reg" for PIC.
|
// For 32-bit, prepend instructions to set the "global base reg" for PIC.
|
||||||
if (!getX86Subtarget().is64Bit())
|
if (!getX86Subtarget().is64Bit())
|
||||||
addPass(createGlobalBaseRegPass());
|
addPass(createX86GlobalBaseRegPass());
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user