From e5f5221b5ee04eaffdd76c196c32b82ca4b9a332 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 30 Oct 2002 00:56:18 +0000 Subject: [PATCH] Implement the new optional getRegisterInfo git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4437 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86TargetMachine.h | 3 +++ 1 file changed, 3 insertions(+) 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