Implement the new optional getRegisterInfo
authorChris Lattner <sabre@nondot.org>
Wed, 30 Oct 2002 00:56:18 +0000 (00:56 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 30 Oct 2002 00:56:18 +0000 (00:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4437 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86TargetMachine.h

index 863eb604f5331b7c24414b7a43689aca9b6aa8b0..9db8375d8dff15886dcc9df9587ac09003907304 100644 (file)
@@ -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