summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-04-23 16:24:55 +0000
committerChris Lattner <sabre@nondot.org>2003-04-23 16:24:55 +0000
commit524608ab7951e3c5bb13f6773d73c75ffd457735 (patch)
tree18b93f6cb965a4dea7be3fc3bb5ad54da9d97540 /llvm/lib/Target/Sparc
parent1dd918599660409f2a92ce216291afe8191b8083 (diff)
downloadbcm5719-llvm-524608ab7951e3c5bb13f6773d73c75ffd457735.tar.gz
bcm5719-llvm-524608ab7951e3c5bb13f6773d73c75ffd457735.zip
Add support for the Switch instruction by running the lowerSwitch pass first
llvm-svn: 5867
Diffstat (limited to 'llvm/lib/Target/Sparc')
-rw-r--r--llvm/lib/Target/Sparc/Sparc.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/Sparc/Sparc.cpp b/llvm/lib/Target/Sparc/Sparc.cpp
index 81de95c6af7..c0269052be5 100644
--- a/llvm/lib/Target/Sparc/Sparc.cpp
+++ b/llvm/lib/Target/Sparc/Sparc.cpp
@@ -143,6 +143,9 @@ UltraSparc::UltraSparc()
//
bool UltraSparc::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out)
{
+ // FIXME: implement the switch instruction in the instruction selector.
+ PM.add(createLowerSwitchPass());
+
// Construct and initialize the MachineFunction object for this fn.
PM.add(createMachineCodeConstructionPass(*this));
OpenPOWER on IntegriCloud