From: Chris Lattner Date: Wed, 30 Oct 2002 00:56:18 +0000 (+0000) Subject: Implement the new optional getRegisterInfo X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e5f5221b5ee04eaffdd76c196c32b82ca4b9a332;p=oota-llvm.git Implement the new optional getRegisterInfo git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4437 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86TargetMachine.h b/lib/Target/X86/X86TargetMachine.h index 863eb604f53..9db8375d8df 100644 --- a/lib/Target/X86/X86TargetMachine.h +++ b/lib/Target/X86/X86TargetMachine.h @@ -21,6 +21,9 @@ public: virtual const MachineFrameInfo &getFrameInfo() const { abort(); } virtual const MachineCacheInfo &getCacheInfo() const { abort(); } virtual const MachineOptInfo &getOptInfo() const { abort(); } + virtual const MRegisterInfo *getRegisterInfo() const { + return &instrInfo.getRegisterInfo(); + } /// addPassesToJITCompile - Add passes to the specified pass manager to /// implement a fast dynamic compiler for this target. Return true if this is