aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-14 17:25:31 +0000
committerChris Lattner <sabre@nondot.org>2001-10-14 17:25:31 +0000
commit0714e3bc44da411bb85ed450a992afdf27eec19e (patch)
tree3bfef97c73329307670e9d372162488a469f42f7 /lib
parentf96315e985880178562ba43b51efbc0efc8f6c8a (diff)
downloadexternal_llvm-0714e3bc44da411bb85ed450a992afdf27eec19e.zip
external_llvm-0714e3bc44da411bb85ed450a992afdf27eec19e.tar.gz
external_llvm-0714e3bc44da411bb85ed450a992afdf27eec19e.tar.bz2
Make the sparc.burg file be a little more flexible and rubust in the fact of
renumbering of instructions. It is still horribly broken and grossly dependant on the number of instructions, but now it is a least a little better. Oh yeah it also works now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@793 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/SparcV9/Makefile16
-rw-r--r--lib/Target/SparcV9/SparcV9TargetMachine.cpp1
2 files changed, 11 insertions, 6 deletions
diff --git a/lib/Target/SparcV9/Makefile b/lib/Target/SparcV9/Makefile
index 82404c8..018dd8a 100644
--- a/lib/Target/SparcV9/Makefile
+++ b/lib/Target/SparcV9/Makefile
@@ -3,11 +3,17 @@ LIBRARYNAME = sparc
## List source files in link order
Source = \
- Sparc.o \
- Sparc.burm.o \
- SparcInstrSelection.o \
- SparcRegClassInfo.o \
- SparcRegInfo.o EmitAssembly.o
+ Sparc.cpp \
+ Sparc.burm.cpp \
+ SparcInstrSelection.cpp \
+ SparcRegClassInfo.cpp \
+ SparcRegInfo.cpp EmitAssembly.cpp
include $(LEVEL)/Makefile.common
+Debug/Sparc.burg.in1 : Sparc.burg.in
+ g++ -E -I$(LEVEL)/include -D_DEBUG -x c++ $< | sed '/^# /d' | sed 's/Ydefine/#define/' > $@
+
+Debug/Sparc.burg : Debug/Sparc.burg.in1
+ g++ -E -I$(LEVEL)/include -D_DEBUG -x c++ $< | sed '/^# /d' | sed 's/Xinclude/#include/g' | sed 's/Xdefine/#define/g' > $@
+
diff --git a/lib/Target/SparcV9/SparcV9TargetMachine.cpp b/lib/Target/SparcV9/SparcV9TargetMachine.cpp
index dac4d20..b1b99bb 100644
--- a/lib/Target/SparcV9/SparcV9TargetMachine.cpp
+++ b/lib/Target/SparcV9/SparcV9TargetMachine.cpp
@@ -35,7 +35,6 @@ const MachineInstrDescriptor SparcMachineInstrDesc[] = {
TargetMachine *allocateSparcTargetMachine() { return new UltraSparc(); }
-
//----------------------------------------------------------------------------
// Entry point for register allocation for a module
//----------------------------------------------------------------------------