[llvm-commits] CVS: llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp

Chris Lattner lattner at cs.uiuc.edu
Sat Jul 10 21:47:01 PDT 2004


Changes in directory llvm/lib/Target/PowerPC:

PowerPCTargetMachine.cpp updated: 1.8 -> 1.9

---
Log message:

Auto-registrate target


---
Diffs of the changes:  (+6 -0)

Index: llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp
diff -u llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp:1.8 llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp:1.9
--- llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp:1.8	Thu Jun 10 01:19:25 2004
+++ llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp	Sat Jul 10 21:46:18 2004
@@ -15,10 +15,16 @@
 #include "llvm/Module.h"
 #include "llvm/PassManager.h"
 #include "llvm/Target/TargetMachineImpls.h"
+#include "llvm/Target/TargetMachineRegistry.h"
 #include "llvm/CodeGen/MachineFunction.h"
 #include "llvm/CodeGen/Passes.h"
 using namespace llvm;
 
+namespace {
+  // Register the target.
+  RegisterTarget<PowerPCTargetMachine> X("powerpc", "PowerPC (experimental)");
+}
+
 // allocatePowerPCTargetMachine - Allocate and return a subclass of 
 // TargetMachine that implements the PowerPC backend.
 //





More information about the llvm-commits mailing list