diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-12-16 19:08:59 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-12-16 19:08:59 +0000 |
commit | 903456245bda41adc90dcab67623169ee3aaff8b (patch) | |
tree | 86ea0042adf4ad4e3fabc2131c992fc23bfc710d /lib/Target/Hexagon | |
parent | c104cf20028078e012a97b523a0dff6ab432bff7 (diff) |
Hexagon: Fix a nasty order-of-initialization bug.
Reenable the tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146750 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Hexagon')
-rw-r--r-- | lib/Target/Hexagon/HexagonTargetMachine.cpp | 2 | ||||
-rw-r--r-- | lib/Target/Hexagon/HexagonTargetMachine.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/Hexagon/HexagonTargetMachine.cpp b/lib/Target/Hexagon/HexagonTargetMachine.cpp index b29e92c0c6..ee09dafd2b 100644 --- a/lib/Target/Hexagon/HexagonTargetMachine.cpp +++ b/lib/Target/Hexagon/HexagonTargetMachine.cpp @@ -56,7 +56,7 @@ HexagonTargetMachine::HexagonTargetMachine(const Target &T, StringRef TT, CodeGenOpt::Level OL) : LLVMTargetMachine(T, TT, CPU, FS, Options, RM, CM, OL), DataLayout("e-p:32:32:32-i64:64:64-i32:32:32-i16:16:16-i1:32:32-a0:0") , - Subtarget(TT, CPU, FS), TLInfo(*this), InstrInfo(Subtarget), + Subtarget(TT, CPU, FS), InstrInfo(Subtarget), TLInfo(*this), TSInfo(*this), FrameLowering(Subtarget), InstrItins(&Subtarget.getInstrItineraryData()) { diff --git a/lib/Target/Hexagon/HexagonTargetMachine.h b/lib/Target/Hexagon/HexagonTargetMachine.h index e27d3ae943..712cf3d5ea 100644 --- a/lib/Target/Hexagon/HexagonTargetMachine.h +++ b/lib/Target/Hexagon/HexagonTargetMachine.h @@ -29,8 +29,8 @@ class Module; class HexagonTargetMachine : public LLVMTargetMachine { const TargetData DataLayout; // Calculates type size & alignment. HexagonSubtarget Subtarget; - HexagonTargetLowering TLInfo; HexagonInstrInfo InstrInfo; + HexagonTargetLowering TLInfo; HexagonSelectionDAGInfo TSInfo; HexagonFrameLowering FrameLowering; const InstrItineraryData* InstrItins; |