summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegisterCoalescer.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-08-09 00:29:53 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-08-09 00:29:53 +0000
commit4c9a2fb04499b90686df1f0c6b5dd3f4f73b1000 (patch)
tree28079b04d779f8cf820c4da3422a3a5eed46c7a6 /llvm/lib/CodeGen/RegisterCoalescer.cpp
parent7d6811d60e10055d5e663bc9d833ef5827434d0a (diff)
downloadbcm5719-llvm-4c9a2fb04499b90686df1f0c6b5dd3f4f73b1000.tar.gz
bcm5719-llvm-4c9a2fb04499b90686df1f0c6b5dd3f4f73b1000.zip
Refer to the RegisterCoalescer pass by ID.
A public interface is no longer needed since RegisterCoalescer is not an analysis any more. llvm-svn: 137082
Diffstat (limited to 'llvm/lib/CodeGen/RegisterCoalescer.cpp')
-rw-r--r--llvm/lib/CodeGen/RegisterCoalescer.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/RegisterCoalescer.cpp b/llvm/lib/CodeGen/RegisterCoalescer.cpp
index 887954fb47b..cab284f1028 100644
--- a/llvm/lib/CodeGen/RegisterCoalescer.cpp
+++ b/llvm/lib/CodeGen/RegisterCoalescer.cpp
@@ -75,6 +75,8 @@ VerifyCoalescing("verify-coalescing",
cl::desc("Verify machine instrs before and after register coalescing"),
cl::Hidden);
+char &llvm::RegisterCoalescerPassID = RegisterCoalescer::ID;
+
INITIALIZE_PASS_BEGIN(RegisterCoalescer, "simple-register-coalescing",
"Simple Register Coalescing", false, false)
INITIALIZE_PASS_DEPENDENCY(LiveIntervals)
@@ -1841,7 +1843,3 @@ bool RegisterCoalescer::runOnMachineFunction(MachineFunction &fn) {
void RegisterCoalescer::print(raw_ostream &O, const Module* m) const {
li_->print(O, m);
}
-
-RegisterCoalescer *llvm::createRegisterCoalescer() {
- return new RegisterCoalescer();
-}
OpenPOWER on IntegriCloud