[llvm-commits] [llvm] r161081 - in /llvm/trunk/lib/Target/Mips: Mips16InstrInfo.cpp Mips16InstrInfo.h MipsInstrInfo.cpp MipsInstrInfo.h MipsLongBranch.cpp MipsSEInstrInfo.cpp MipsSEInstrInfo.h MipsTargetMachine.cpp MipsTargetMachine.h
Dmitri Gribenko
gribozavr at gmail.com
Tue Jul 31 15:26:37 PDT 2012
On Tue, Jul 31, 2012 at 2:49 PM, Akira Hatanaka <ahatanaka at mips.com> wrote:
> Modified: llvm/trunk/lib/Target/Mips/MipsTargetMachine.h
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsTargetMachine.h?rev=161081&r1=161080&r2=161081&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Target/Mips/MipsTargetMachine.h (original)
> +++ llvm/trunk/lib/Target/Mips/MipsTargetMachine.h Tue Jul 31 16:49:49 2012
> @@ -25,12 +25,13 @@
> #include "llvm/Target/TargetFrameLowering.h"
>
> namespace llvm {
> - class formatted_raw_ostream;
> +class formatted_raw_ostream;
> +class MipsRegisterInfo;
>
> class MipsTargetMachine : public LLVMTargetMachine {
> MipsSubtarget Subtarget;
> const TargetData DataLayout; // Calculates type size & alignment
> - MipsInstrInfo InstrInfo;
> + const MipsInstrInfo *InstrInfo;
> MipsFrameLowering FrameLowering;
> MipsTargetLowering TLInfo;
> MipsSelectionDAGInfo TSInfo;
Hi Akira,
Seems like MipsRegisterInfo is a struct:
.../clang-commit/llvm/lib/Target/Mips/MipsTargetMachine.h:29:1:
warning: class 'MipsRegisterInfo' was previously declared as a struct
[-Wmismatched-tags]
class MipsRegisterInfo;
^
.../clang-commit/llvm/lib/Target/Mips/MipsRegisterInfo.h:28:8: note:
previous use is here
struct MipsRegisterInfo : public MipsGenRegisterInfo {
Dmitri
--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
More information about the llvm-commits
mailing list